![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Pls Help-Script to execute Commands and write to excel file | Computer_baby | Shell Programming and Scripting | 1 | 01-08-2008 08:34 AM |
| How to execute multiple commands via ssh | srage | Shell Programming and Scripting | 9 | 01-05-2008 03:18 AM |
| Multiple scanners on same input file using lex/flex | Rakesh Ranjan | High Level Programming | 5 | 12-08-2006 05:53 AM |
| how do i get my script to execute multiple commands? | hvincent | Shell Programming and Scripting | 1 | 04-26-2006 08:19 AM |
| Executing commands with xargs | bmopal | UNIX for Dummies Questions & Answers | 1 | 08-13-2001 04:05 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Can Xargs execute multiple commands of evry input file
Hello ,
I am trying to print the footer of evry file in the given directory with xargs command like follows ls -1 | xargs -I {} gzcat {} | tail -1 now problem with this is only last file foooter is getting printed as " | tail -1 " is getting executed for the last file. I know this can be done in some other ways like looping thru the input files and all but how do we achieve this kind of Piping the out of xargs to a next command for evry input file?? Many Thanks in Advance, Cheers, Nilesh |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|