Linux tips and tricks
Saturday, February 22, 2014
Linux How to concatenate text files
cat file1 file2 filen > outputfile
or if you want to concatenate all text files in directory:
cat *.txt > outputfile
or you can use >> operator to append to file:
cat file1 >> file2
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment