SHARE
TWEET

Untitled

a guest Mar 20th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. fullFileName=$1
  4.  
  5. suffix=${fullFileName#*.}
  6.  
  7. if [ "$suffix" != "zip" ];then
  8.   echo "Must be a valid zip file"
  9. else
  10.   filename=${fullFileName%.*}
  11.   echo "filename: $filename"
  12.   echo "now unzip $1 and use idea $1"
  13.   unzip $1 && idea $filename
  14. fi
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top