Pages

▼
Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts
Sunday, February 24, 2013

shell script echo new line to file

›
var1="Hello" var2="World!" logwrite="$var1\n$var2" echo -e "$logwrite" >> /Users/username/...

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;
›
Home
View web version
Powered by Blogger.