Pages
Home
Java
Android
Php
Cake PHP
jQuery
Grails
All Pages
Showing posts with label
chaek variable
.
Show all posts
Showing posts with label
chaek variable
.
Show all posts
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;
Older Posts
Home
Subscribe to:
Posts (Atom)