Pages
Home
Java
Android
Php
Cake PHP
jQuery
Grails
All Pages
Sunday, February 24, 2013
How to tell if a string is not defined in a bash shell script
#!/bin/bash
if [ -z $1 ]; then
echo 'Enter something please.';
exit 1;
fi;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment