View Single Post

   
  #3 (permalink)  
Old 02-18-2008, 07:41 PM
AthlonRob
 
Posts: n/a
Default Re: [OT] huh? weird tar behaviour

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

On 2 Dec 2003 02:14:04 GMT, Joost Kremers <joostkremers@yahoo.com> wrote:
> after downloading, i do 'less MANIFEST-9.1.bz2'. great surprise, i get only
> garbage. 'tar tjf MANIFEST-9.1.bz2' gives me the following errors:


Errrmmmm... pardon me if I'm totally wrong here, but isn't less for
reading plaintext files? Then you use zless for reading gzip'd files,
and bzless[1] for reading bz2'd files. Or have I been wasting my time
with these additional utilities?

> the first two and last errors are in dutch, they mean something like 'this
> does not look like a tar archive', 'skipping to next header line' and
> 'Error exit postponed after previous errors'. (yeah, it's as meaningless in
> dutch as it is in english...)


Errrrmmmm... maybe I'm mistaken again, but I really don't think MANIFEST
is a tar file. bunzip2 MANIFEST-9.1.bz2 might do the trick for ya. Why
play with tar if there's no tarring involved? It's just a single file,
right?

I don't know what the switches you used above mean on tar, though, I
just know enough tar to know where to look in the man page or --help
output. :-)

> so i redownload the file, now keeping the name MANIFEST.bz2. i try 'less
> MANIFEST,bz2' and everything works. so i rename the file to
> MANIFEST-9.1.bz2, thinking the download must've been screwed.


Looks like somebody else answered why that worked. I'm surprised less
reads bz2'd files like that.

Craziness. :-)

[1] - bzless available upon request, I have a version grabbed from
Debian.

--
Rob | If not safe,
Email and Jabber: | one can never be free.
athlonrob at axpr dot net |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/zA14hm6KEoOOAe0RAp1MAKChkmhFPGYSUvaK1eFXW6P2kZId9A Cg5ixp
jS4PxQdTJwazRWThKtSm4+A=
=kfSz
-----END PGP SIGNATURE-----
Reply With Quote