![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sed command over multiple lines in csh?? | tuathan | UNIX for Dummies Questions & Answers | 1 | 11-25-2008 08:00 PM |
| using sed command to delete a string spanning multiple lines | radha.kalivar | Shell Programming and Scripting | 9 | 07-25-2007 11:26 AM |
| using sed command to replace multiple lines | radha.kalivar | Shell Programming and Scripting | 1 | 07-10-2007 11:36 AM |
| How to run awk command having multiple lines | nani_g | Shell Programming and Scripting | 0 | 06-09-2006 03:49 AM |
| Repeat a command in a shell | scotty | UNIX for Dummies Questions & Answers | 2 | 10-30-2002 02:42 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Repeat same command on multiple lines
HI
I have a text file named docs with 100 filenames with full directory path one by one. I want to perform an action on all of them, the action i want to do this chown bin:bin <filename>. The <filename> should be each line in the docs text file. Please give the code. Somebody told to use for loop and somebody uses while. Please suggest the best and give the code. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|