![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| scripting newbie needs help | irishluck66 | Shell Programming and Scripting | 0 | 05-23-2008 08:22 AM |
| Scripting Newbie | Kymmers7 | Shell Programming and Scripting | 5 | 10-19-2007 07:52 AM |
| Shell scripting newbie - please be gentle. | charliemp3 | Shell Programming and Scripting | 2 | 08-01-2007 10:25 AM |
| shell scripting newbie question | jazzman | UNIX for Dummies Questions & Answers | 2 | 12-29-2006 05:33 AM |
| Newbie - Need help in bash scripting | coolbib | Shell Programming and Scripting | 4 | 08-11-2002 05:28 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
I'm relatively new at this scripting game, just need to learn some basic stuff for data handling.
My current need is to write a script that loops through a textfile of filenames, and for each file removes the first line and re-writes that file to a new name. In fact I could do with knowing the best way to read and write specific lines within a file too! Cheers |
| Forum Sponsor | ||
|
|
|
||||
|
For your current needs:
Code:
while read filename; do tail +2 $filename > /path/to/new_filename done < /path/to/file_containing_filenames |
||||
| Google The UNIX and Linux Forums |