p.sh 140 B

123456789
  1. #!/bin/sh
  2. cd ../
  3. PROCESS=`pwd | xargs -i basename {}`
  4. ps auxf | grep "\./${PROCESS}" | grep -v grep | awk '{printf "%s\n", $0;}'
  5. exit 0