Niether of those solutions worked for me exactly as specified, however the following command worked fine:
$ for file in `tar tvf /u8/sp_archive/2005.tar | grep 1274 | awk '{print $9}'`
> do
> tar xvf /u8/sp_archive/2005.tar "$file"
> done
It was about 40 files total - so it would have been a bit of a pain to do it all by hand, which is why I love for loops.
Thank you for the help - looks like I was just forgetting my quotes!
Reputation Points: 13
Solved Threads: 9
Junior Poster in Training
Offline 58 posts
since Apr 2008