Touch a file in Linuxprogramming.devimage chraebsli ( @chraebsli@programming.dev ) cake Programmer Humor@programming.dev • 4 months ago message-square45fedilinkarrow-up1665
arrow-up1665imageTouch a file in Linuxprogramming.dev chraebsli ( @chraebsli@programming.dev ) cake Programmer Humor@programming.dev • 4 months ago message-square45fedilink
minus-square magic_lobster_party ( @magic_lobster_party@kbin.run ) linkfedilink19•4 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 wewbull ( @wewbull@feddit.uk ) linkfedilinkEnglish14•4 months ago$ cat file1 > output_file $ cat file2 >> output_file $ cat file3 >> output_file I’m sorry!
minus-square dan ( @dan@upvote.au ) linkfedilink4•edit-24 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.
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