View Single Post
Old 5th February 2008, 21:25
topdog topdog is offline
Senior Member
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts

Originally Posted by anything
and what does these commands do:

[[ -z $user ]]



-eq 1 0

[[ `grep -c $user` -eq 1 ]]


The first tests if $user veriable is empty,

The second is invalid

The third tests if the number of characters in $user variable has more one character.

And finally i will write you a quick script when i have some time on my hands
---- - Got Linux problems ? - I can help. - Try it.
Reply With Quote