chraebsli to Programmer [email protected] • 8 months agoTouch a file in Linuxprogramming.devimagemessage-square91fedilinkarrow-up11.17Karrow-down129
arrow-up11.14Karrow-down1imageTouch a file in Linuxprogramming.devchraebsli to Programmer [email protected] • 8 months agomessage-square91fedilink
minus-squaremagic_lobster_partylinkfedilink19•8 months 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-square@[email protected]linkfedilinkEnglish19•8 months ago$ cat file1 > output_file $ cat file2 >> output_file $ cat file3 >> output_file I’m sorry!
minus-square@[email protected]linkfedilink4•edit-28 months 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_file
I’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