chraebsli ( chraebsli@programming.dev ) to Programmer Humor@programming.dev · 3 years agoTouch a file in Linuxprogramming.devimagemessage-square44linkfedilinkarrow-up1672
arrow-up1672imageTouch a file in Linuxprogramming.devchraebsli ( chraebsli@programming.dev ) to Programmer Humor@programming.dev · 3 years agomessage-square44linkfedilink
minus-squaremagic_lobster_party ( magic_lobster_party@kbin.run ) linkfedilinkarrow-up19·3 years agoI sometimes use cat to concatenate files. For example, add a header to a csv file without manually copy and paste it. It’s rare, but at least more frequent than using touch.
minus-squarewewbull ( wewbull@feddit.uk ) linkfedilinkEnglisharrow-up14·3 years ago$ cat file1 > output_file $ cat file2 >> output_file $ cat file3 >> output_file I’m sorry!
minus-squaredan ( dan@upvote.au ) linkfedilinkarrow-up4·3 years agoThat’s its intended purpose - combining files together (the opposite of split). See the first line of the man page: https://man7.org/linux/man-pages/man1/cat.1.html
I sometimes use cat to concatenate files. For example, add a header to a csv file without manually copy and paste it. It’s rare, but at least more frequent than using touch.
$ cat file1 > output_file $ cat file2 >> output_file $ cat file3 >> output_fileI’m sorry!
That’s its intended purpose - combining files together (the opposite of
split). See the first line of the man page: https://man7.org/linux/man-pages/man1/cat.1.html