File Decompression Issues

Tim Chase blinux.list at thechases.com
Tue Jan 11 18:02:36 UTC 2011


> the NLS books aren't actually compressed directory structures
> as such. Rather, they are compressed archives consisting of
> multiple files that need to be housed within their own
> respective directories.

Between your info and Lloyd's post, if you want to uncompress a 
number of them, you can do it with a shell one-liner (assuming a 
modest number of books and you can hit them with a file-globbing 
spec):

  bash$ cd ~/books
  bash$ for f in *.zip; do unzip -d "${f/#.zip/}" "$f"; done

This will iterate over your globbing pattern ("*.zip") and unzip 
each file into a directory of the same name minus the .zip extension.

-tim






More information about the Blinux-list mailing list