Monthly Archives: April 2012

Empty A File Without Deleting It

$ > foo.txt

Posted in bash, linux, ubuntu

Echo Strings With A New Line To A New File Using Command Line

$ echo -e “younarenawesome” > foo.txt This will create a file foo.txt and fill it up with your specified string If you do a $ cat foo.txt The output would be: $ cat foo.txt you are awesome

Posted in bash, linux, ubuntu