Re: zip up files listed in a file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix questions > Re: zip up files listed in a file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: zip up files listed in a file  
Michael Tosch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-04-05 10:57 PM

david@tvis.co.uk wrote:
> Hi
> Neither solution works for me
>
> $ zip all.zip $(cat list.txt)
>         zip warning: name not matched: x1
>         zip warning: name not matched: x2
>         zip warning: name not matched: x3
>
> does work if I join all the lines of list.txt into one long line eg
> x1 x2 x3
>

I guess you have created a DOS style .txt file.
Then convert to Unix via "dos2unix".
E.g.

dos2unix list.txt | xargs zip all.zip


--
Michael Tosch @ hp : com





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:16 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register