Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


ditto | 9 comments | Create New Account
Click here to return to the 'ditto' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
ditto
Authored by: LC on Apr 19, '04 05:32:42PM
Bourne sh wouldn't do the pattern substitution though;
(but bash sh, ksh, zsh do do it)

gzip -dc $file | gzip -c > ${file%%.Z}.gz || echo "ERROR -- Couldn't make '${file%%.Z}.gz'"

[ Reply to This | # ]