4 ms·
How can you even use cat to write? I understand dd or echo, but cat by itself? Cat /dev/whatever and a steady hand?
by pfoof 4y ago
How can you even use cat to write? I understand dd or echo, but cat by itself? Cat /dev/whatever and a steady hand?
- forgotpwd16 4y ago$ cat <<EOF > test > this is a test text file > written with cat > EOF $ cat <<EOF >> test > this is an extra line at the end > EOF $ cat test this is a test text file written with cat this is an extra line at the end But not sure how you modify them. An option will be using other tools but that makes cat incapable of being a text editor.
- pfoof 4y agoRight! >But not sure how you modify them. Maybe somehow sending escaped "backspace" symbol?
- DemocracyFTW2 4y agoThat said, this is in no way below the practicability of using butterflies and cosmic rays
- kergonath 4y ago> An option will be using other tools but that makes cat incapable of being a text editor. It’s only a problem if you make mistakes. Real programmers don’t, hence cat is perfectly cromulent.
- deleted 4y ago[deleted]
- Cockbrand 4y agocat > myfile.txt Then type away, finishing by hitting CTRL+D on a single line.