myhome/.config/nvim/plugged/bash-support.vim/bash-support/codesnippets/check-number-of-command-line-arguments

6 lines
257 B
Plaintext
Raw Normal View History

#-----------------------------------------------------------------------
# Check number of command line arguments
#-----------------------------------------------------------------------
[ $# -lt 1 ] && { echo -e "\n\tUsage: ${0##/*/} File\n"; exit 1; }