Input check Nov 24, 2013 • guidedmissile Test if command line inputs are given or not. if [ -n "$1" ] # Test if command line argument present (non-empty). then lines=$1 else lines=$LINES # Default, if not specified on command line. fi How to runscript with input is ./scriptname "InputHere"