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