Commandline 101: cat, Not Just for Purring
Top Comments
All Comments (6)
-
its not the same like cat. echo just outputs ONE single line. you cannot enter n lines by pressing enter like with cat. maybe "type > file.txt" would do like cat. but i did not tested it yet.
-
If i remember correctly, Windows users can do this instead (not necessarily the easiest way):
echo This is file 1>file1.txt
echo This is file 2>file2.txt
echo This is still file 2>>file2.txt
type file1.txt>file3.txt
type file2.txt>>file3.txt
-
Haha, and even then, she will see weird squares. Now I'm endorsing new software!
-
For convention sake. If Johnny wants to send his fancy new file3.txt file to Mom and see how awesome the cat file is -- Mom should be able to open it on her Windows 3.1 box. :D
-
Super new user tip. But why the .txt? Linux has magic number file recognition, so extensions are redundant.
I like weird squares, I myself have been a weird square for many years.
theinsidiousfumanchu 2 years ago 6