ulvis.paste.net - pastebin

Paste Search Dynamic
valid file passed as
  1. #!/bin/sh
  2.  
  3. if [ $# -lt 1 ] || [ ! -f $1 ]; then
  4.     echo "E:No valid file passed as parameter"
  5.     exit
  6. fi
  7.  
  8. grep '^\(\(0\)\|\([1-9][0-9]*\)\)$' < $1
Parsed in 0.003 seconds