Problem with periodically done scripts

Dan Nelson dnelson at allantgroup.com
Fri Jul 25 15:22:07 PDT 2003


In the last episode (Jul 26), Peter Rosa said:
> Dear Gilbert,
> 
> I have replaced wc with make install from /usr/src/usr.bin/wc and now it
> works. Up now wc -l gave no results, now it give proper number.
> 
> Could you, please, explain the following line: [ $n -gt 0 -a $rc -lt 1 ] ???
> Why are there [] ? When I write it at prompt as
> [0 -gt 0 -a - lt 0] it writes [: 0: unexpected operator, but
> [0 -gt 0 -a -lt ] writes nothing.

[ is another way to run the "test" command.  "man test" for more info.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list