Compress files with indirectly known path
Hello everybody,
I'd solve the following problem : I suppose I get in a file a list of file paths like that : " ... file:/home/guy/.galeon/mozilla/galeon/Cache/00EA5752d01 file:/home/guy/.galeon/mozilla/galeon/Cache/011668C2d01 file:/home/guy/.galeon/mozilla/galeon/Cache/032513B3d01 file:/home/guy/.galeon/mozilla/galeon/Cache/03D23D49d01 file:/home/guy/.galeon/mozilla/galeon/Cache/03E33D49d01 ... " I'd compress all these files with an easy command. Does somebody know a solution ? Thank you very much in advance, griv:confused: |
cat filelist | sed -e 's/file://' | xargs gzip
|
Thank you very much !
|
All times are GMT -5. The time now is 12:28 AM. |