Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #! bin/bash
  2.  
  3.  
  4. while getopts "af:" arg; do
  5.   case $arg in
  6.     a)
  7.       echo "TODA LA WEA"
  8.       ;;
  9.     f)
  10.       strength=$OPTARG
  11.       echo "ARchivo:" + $strength
  12.       ;;
  13.   esac
  14. done
  15. shift $(( OPTIND - 1 ))
  16.  
  17. for opcion in "$@";do
  18.     echo $opcion
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement