Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!bin/bash
- #Find all Zips and return ass array for for loop
- for file in $(ls $HOME/Path/to/*.zip); \
- # unzip all files to destiny
- do unzip $file -d $HOME/path/to/destiny/\
- # cut extension and then dot delimitedn parts of file to create directory from filename
- $(echo $file | cut -f 6 -d '/' | cut -f 1-3 -d '.');\
- done;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement