View Single Post
  #4  
Old 5th February 2008, 20:25
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 152 Times in 149 Posts
Default

Quote:
Originally Posted by anything
and what does these commands do:

[[ -z $user ]]

--

grep

--
-eq 1 0
--

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

--

thanks
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
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote