13

UNIX commands for a script that I need

view full story
linux-howto

http://www.unix.com – Hello. I need help trying to create a script in UNIX to do the following steps. I don't know which commands to input to achieve this. 1. In a directory tree, I want to duplicate all .txt files into the same directory, so 2 of each file exists in each directory where there is a .txt file In the newly created files, I need to: 2. Change the extension to .dat 3. Remove the first 2 lines of text 4. Copy the first 8 lines from an outside, static file, and paste them into the first 8 lines of the newly created files I don't know if the steps above are the right way to approach what I want (HowTos)