Thread View: comp.sys.next.misc
2 messages
2 total messages
Started by James E. Burns
Thu, 19 Nov 1992 18:20
Re: su File Viewer
Author: James E. Burns
Date: Thu, 19 Nov 1992 18:20
Date: Thu, 19 Nov 1992 18:20
23 lines
1177 bytes
1177 bytes
It's a good idea to know what will happen BEFORE you unpack an unknown
archive. I use the following little aliases to inspect things before
I "untar":
# Show the contents of a *.tar file
alias showtar 'tar vtf \!:1'
# Show the contents of a *.tar.Z file
alias showZ 'zcat \!:1 | tar vtf -'
To actually unpack:
# Unpack a *.tar file:
alias untar 'tar xvf \!:1'
# Unpack a *.tar.Z file:
alias untarZ 'zcat \!:1 | tar xvf -'
jim burns
--
James E. Burns Associate Professor (404) 894-3816 Fax: (404) 853-9378
College of Computing, Georgia Tech, Atlanta GA 30332-0280
Internet : burns@CC.GaTech.edu
uucp: ...!{akgua,allegra,hplabs,ihnp4,linus,seismo,ulysses}!gatech!cc!burns
GNU tar (was Re: su File Viewer)
Author: Ken-ichiro Aoki
Date: Thu, 19 Nov 1992 23:13
Date: Thu, 19 Nov 1992 23:13
34 lines
1605 bytes
1605 bytes
In article <BURNS.92Nov19132017@bobcat.cc.gatech.edu> burns@cc.gatech.edu (James E. Burns) writes:
>It's a good idea to know what will happen BEFORE you unpack an unknown
>archive. I use the following little aliases to inspect things before
>I "untar":
>
># Show the contents of a *.tar file
>alias showtar 'tar vtf \!:1'
># Show the contents of a *.tar.Z file
>alias showZ 'zcat \!:1 | tar vtf -'
>
....
I have seen this a couple of times now so I will post rather
than email. You can use GNU tar and say
to show the content (verbose)
% tar -vtf foo.tar
% tar -zvtf foo.tar.Z
to unpack
% tar -xf foo.tar
% tar -zxf foo.tar.Z
On NeXTstep3.0, GNU tar 1.10 does come with the system as
/usr/bin/gnutar so you don't have to install it.
Latest version I know of is 1.11.1 which compiles fine on NeXTs.
I don't mean to flame or anything but this may save you some
effort.
Another feature I like is that you can do remote tars
using GNU tar, which we use (since we don't have tape
drives hooked up to the NeXTs.)
--
___Kenichiro Aoki. (aoki@physics.ucla.edu)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads