LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] tarring on an AIX box

[ILUG] tarring on an AIX box

Waider waider at waider.ie
Wed Jul 25 16:02:59 IST 2001


At Wednesday, 25 July 2001, "Jane Shaw" <jane_shaw00 at hotmail.com> wrote:
>hi gang,
>Quick question:>
>is there a way to create an archive of a list of directories(including 
sub 
>dirs etc.)which are contained within a file. As I am getting this for 
>someone I am trying to do it without having to go down the heady 
road of 
>shell scripts so if anyone knows a one line command that can do 
this please 
>give me a shout

Assuming your tar behaves in an approximately sane manner when doing
verbose listing, try

tar tvf foo.tar | grep "^d" | cut -c55-

If your tar file has slightly insane output, you may need to adjust
the 55.

Waider.
-- 
waider at waider.ie / Yes, it /is/ very personal of me.

http://www.emailreader.co.uk/ - because firewalls suck.




================================================================
Access over 250 professionally developed online training courses
Purchase a 12 months membership online.  Click below for details
      http://training.beginners.co.uk/moreinfo/vid/eml
================================================================






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell