daa6624cfca31272c6b9f9160d132e93f86db834
3 USAGE
="usage: ./process-pid.sh {[-h, -a], [-f, -e] <pid>}, -s <regexp>"
8 elif [[ "$1" =~ ^
-?
[0-9]+$
]]; then # unportable :(
9 if `ps $1 > /dev/null 2>&1`; then
10 echo "you win!"; exit 0
13 echo -ne "invalid pid\n$USAGE"; exit 1
16 elif [[ "$1" -eq "-h" ]]; then