# # Linux Shell Script Tutorial # Q12 # Script to check whether "/*" is included, in $1 or not # cat "$1" > /tmp/file.$$ 2>/tmp/file0.$$ grep "*" /tmp/file.$$ >/tmp/file0.$$ if [ $? -eq 1 ] then echo "Required i.e. $1/*" else echo "Symbol is Not required" fi rm -f /tmp/file.$$ rm -f /tmp/file0.$$