#! /bin/bash #Say you have a data file called datafile, e.g. containing some numerical data. You #want to append the content of datafile to a file called targetfile. The shell script is: cat datfile >> targetfile | cat targetfile #The command '| cat targetfile' is optional. It means the screen will print out the content of targetfile #right after the action of appending has been done to targerfile. #Note that the file targetfile may not need to exist in the bigining. It will be created if it is #not in existence in the begining.