Skip to content

Instantly share code, notes, and snippets.

@hgascon
Created June 11, 2015 14:27
Show Gist options
  • Save hgascon/58a21373f8cc09e13403 to your computer and use it in GitHub Desktop.
Save hgascon/58a21373f8cc09e13403 to your computer and use it in GitHub Desktop.
Unzip all files in dir and zip in a new file
#!/bin/bash
for item in *
do
unzip $item
name=$(echo $item | cut -f1 -d ' ' )
echo "all_files.zip" $name".foo"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment