Created
March 15, 2019 07:50
-
-
Save sgyyz/adfa4f05af3d81cf0e17e19cf7044c85 to your computer and use it in GitHub Desktop.
uao.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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