How To Create A File With Cat In Linux

RegisterLogin
How To Create A File With Cat In Linux
Post Description: today i will show you how you a simple way to make a file with one single command using the cat command and redirecting the output to a file so it can be save.
Tags: how, to, create, a, file, with, cat, in, linux
This Post Was Posted On Apr 27, 2010 By Pauls #3428
today i will show you how you a simple way to make a file with one single command using the cat command and redirecting the output to a file so it can be save.

the command is for example:

$ cat - > text.txt

type the following:

Webune, this is Cool!


hit control-D and send this command
$ cat text.txt

you will see this output:
Webune, this is Cool!
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
©2011 Webune Forums - Sun Dec 18, 2011 2:35 pm
Powered by: Webune Forums V3