how to zip files?

Accepted Solution Solved
Reply
Contributor
Posts: 48
Accepted Solution

how to zip files?

I want to zip individual files. The kicker is sometimes they already exist, so I don't want to rezip them.

 

This example code works from command line, but I don't know how to get it working using X...

 

 

image.png

Thanks!

jim

 

 


Accepted Solutions
Solution
‎10-13-2017 01:26 PM
Contributor
Posts: 48

Re: how to zip files?

I dumbed it down and it works. (Lucked out)


image.png

 

View solution in original post


All Replies
Regular Contributor
Posts: 204

Re: how to zip files?

Please explain what does not work, and be so kind to post code using {I} icon.
Contributor
Posts: 48

Re: how to zip files?

Posted in reply to error_prone
the error is shown above. "find: incomplete stmt". Also it didnt zip...
Solution
‎10-13-2017 01:26 PM
Contributor
Posts: 48

Re: how to zip files?

I dumbed it down and it works. (Lucked out)


image.png

 

Super User
Super User
Posts: 7,943

Re: how to zip files?

You need to escape the ! character in your unix command.  So if you want to find files that do NOT end if .gz it might look like this.

find ...... \! -name '*.gz' ....

PS Why did you post a photograph of text?  Copy the text as text and use the {i} button on the editor to pop-up a text window to paste the text into.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 178 views
  • 0 likes
  • 3 in conversation