DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash check parameter is set
if
[
-z
"
$1
"
]
;
then
echo
"no paramater given"
else
echo
paramater is
"
$1
"
fi
PREVIOUS
NEXT
Tagged:
#bash
#check
#parameter
#set
ADD COMMENT
Topic
COMMENT
Name
6+1 =
Submit