In this linux article, we will be looking how to redirect to file with append in linux shell.
Following command is used for it.
root@stargate21c: /home/nevada/test# echo "2" >> numbers.txt
Output is as follows:
root@stargate21c: /home/nevada/test# echo "2" >> numbers.txt
root@stargate21c: /home/nevada/test# echo "3" >> numbers.txt
root@stargate21c: /home/nevada/test# cat numbers.txt
2
3
root@stargate21c: /home/nevada/test#
As output indicates, each our echo string gets appended to the "numbers.txt".