Wednesday, March 30, 2011

Copy / Move

concatenate files together in new filecat oldfile1.ext oldfile2.ext > bothfiles.ext
copy a file and prompt before overwritingcp -i existingfile newfile
copy top # lines of a file to a new filehead -# filename > newfilename
move a file and prompt before overwritingmv -i existingfile newfile

No comments:

Post a Comment