Skip to content

Instantly share code, notes, and snippets.

@sgyyz
Created March 15, 2019 07:50
Show Gist options
  • Save sgyyz/adfa4f05af3d81cf0e17e19cf7044c85 to your computer and use it in GitHub Desktop.
Save sgyyz/adfa4f05af3d81cf0e17e19cf7044c85 to your computer and use it in GitHub Desktop.
uao.sh
#!/bin/sh
fullFileName=$1
suffix=${fullFileName#*.}
if [ "$suffix" != "zip" ];then
echo "Must be a valid zip file"
else
filename=${fullFileName%.*}
echo "filename: $filename"
echo "now unzip $1 and use idea $1"
unzip $1 && idea $filename
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment