BASH Scripting

Ed Cogburn edcogburn at hotpop.com
Mon Jun 27 18:55:23 UTC 2005


Matthew S-H wrote:

> I hope I'm not becoming a bother.  If I am, just let me know and I'll
> find another list to post my BASH questions on.
> 
> Anyway, I am still having a little trouble scripting.  I don't quite
> understand tests (when to use == or -eq, for example).


Hi Matthew,

You may want to keep your browser pointed at

http://www.tldp.org/LDP/abs/html/

while you work in Bash.  Chapter 7 covers the test/[/[[ command and what
operators you can use with it:

http://www.tldp.org/LDP/abs/html/tests.html


Bash's man page lists all this under the "CONDITIONAL EXPRESSIONS" section.






More information about the ubuntu-users mailing list