Hello to all in forum,
I'm using unzip command to decompress the file MyFile.zip that contains several files inside of it named with this format.
"MyFile_"+"Other string"+"extension".
Example:
Code:
MyFile_plan2012.log
.
.
.
MyFile_my_resources.pdf
I would like to extract the files modifying the name by deleting the "MyFile_" at the beginning of each file.
There could be more than one "_", but only is needed to erase the text before the first "_" and the first "_" itself.
The unzipped files should be stored in a folder called MyFile and will look like these:
Code:
plan2012.log
.
.
.
my_resources.pdf
"MyFile" is the name and may contain spaces.
May somebody help me to get this output.
Thanks in advance.
PS: I'm using cygwin.
Greetings.