Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

append to a file from terminal

echo "text to append" >> filename

# for multiple lines
echo -e "line1
line2
line3" >> filename
Source by www.cyberciti.biz #
 
PREVIOUS NEXT
Tagged: #append #file #terminal
ADD COMMENT
Topic
Name
5+5 =