Examples of creating files

Examples of creating files

To create a file with the cat command:

   cat > memo
   remember to make appointment at opticians
   get cost of scheduled flight to Athens Ctrl-d

This creates a file called memo in the current directory containing two lines of text.


To create a file with the echo command:

   echo use an editor for large files > tips

This creates a file called tips in the current directory containing a single line of text.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:29 am and is maintained by webmaster@math.rutgers.edu.
For questions regarding courses and/or special permission, please contact mclausen@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2012 Rutgers, The State University of New Jersey. All rights reserved.