LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2002, 11:55 PM   #1
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Rep: Reputation: 15
Unhappy 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
 
Old 12-18-2002, 04:24 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
cat filelist | sed -e 's/file://' | xargs gzip
 
Old 12-19-2002, 12:45 AM   #3
griv
Member
 
Registered: Jul 2001
Location: Saint-Cloud (France)
Distribution: Ubuntu 6.06
Posts: 35

Original Poster
Rep: Reputation: 15
Smile

Thank you very much !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best way to compress image files in Linux? tgardner Linux - Software 2 06-03-2009 11:39 AM
How to compress video files to avi in linux Prasun Linux - Software 1 09-05-2005 07:22 PM
Compress large files deweirdt Linux - Software 1 02-11-2004 08:18 AM
transparantly compress files on ext3 nielchiano Linux - General 2 02-04-2004 07:38 PM
Compress Files mikeshn Programming 5 06-04-2003 01:25 AM


All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration