Link to home
Start Free TrialLog in
Avatar of harryv
harryv

asked on

for i ... strip filename and make dir

Hi,

I have to dirs:

dir1/
dir2/

In dir1 there are a lot of filexxxxxx.tar.gz files

when I do a "for i ..." and $i contains everytime one path+filename for example: /full/path/filename30.tar.gz
I need to make in dir for each file a directory, for example mkdir filename30.

Best regards,

Harry
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial