ojlovecd
ojlovecd

Reputation: 4892

how to rename file when zipping it?

I'm planning to pack some files into a zip file on my ubuntu OS. For example, I have files a, b and c. I want to put them into a new.zip file. But these files have to be renamed to a1, b1 and c1 in the zip file. Any suggestions. Thanks.

Upvotes: 0

Views: 1897

Answers (1)

bozkurt.ykp
bozkurt.ykp

Reputation: 56

you can use zipnote. Use this command :

echo -e "@ myOldFileName.txt\n@=myNewFileName.txt" | zipnote -w myzip.zip

Upvotes: 1

Related Questions