Find knowledge base article(s) by searching for keywords in the title e.g. type linux in the search box below
Find knowledge base article(s) by browsing the subject categories of articles
Technology quick references, cheatsheets, user manuals etc.
Shop Online through ShopifyLite
Tutorials on various IT applications.
Search Title    (UL:0 |SS:f)

Software >> OS >> Unix >> Linux >> Shell >> How to write bash script with fixed number of arguments


#!/bin/bash
ARGS=2
if [ $# -lt $ARGS ]
then
   echo "you passed $# parameters"
   echo "Usage: `basename replacebegin:content:replaceend` arg1 arg2"
exit
fi
arg1=
arg2=
# continue processing with $arg1 and $arg2




[ © 2008-2021 myfaqbase.com - A property of WPDC Consulting ]