zip how to include files with a dollar sign in the name

0

Oracle Solaris 10 9/10 SPARC

I'm trying to archive and compress a large directory using zip

zip dir dir

in this directory are some files with a dollarsign like name$whatever. Zip skips those files with an error message

 name not matched.

Is there a way to prevent this and have those file included? It's not a problem if the dollar is renamed to some unique string and converted back later.

dr jerry

Posted 2012-07-19T12:06:54.383

Reputation: 169

3Which OS are you using? – Ahmed Bilfaqih – 2012-07-19T12:33:16.717

sorry should have been first, updated question. – dr jerry – 2012-07-20T10:01:55.720

Did you try zip -r (for recursion)? – jftuga – 2012-07-20T12:22:19.553

yes I also tried -r. It works with tar and then gzip. – dr jerry – 2012-07-21T16:30:21.797

No answers