Change Name after gzip
I know the default gzip file is .gz , for example , if gzip a file "test.txt" , then the zipped file name is "test.txt.gz" , if I want to change the extension of zipped to "test.txt.oc" , except use mv after gzip , can advise what can I do ? thx
|
well you can use the -S option to override the default extension if you really want to.
|
You can choose the suffix with option -S, e.g.
Code:
gzip -S .oc test.txt Edit: sorry for repetition! I did not see the answer from acid_kewpie before posting. |
All times are GMT -5. The time now is 03:16 PM. |