Thursday, June 30, 2005

Bash Scripting

1.
To debug
bash -x script.sh

2. Variable assignments ( no spaces in between )
x=0;
y="kalyan";

3. String comparisons, use

=, <= etc
For numeric comparison
-lt, -gt, -eq

Quote Strings in comparisons. Will add some examples later

No comments: