1

Help to compare umask of different users.

view story
linux-howto

http://www.unix.com – hi i am trying to compare the usmask of an user.i m getting an error while doing the comaparison.The code i am using is Code:     val=`su - user -c "umask" | tail -2 | sed -n "/[0-9]/p"`     if [ $val -eq 744 ]     then       echo "477 found."     fi When i execute this i am getiin an error like: Code: sh: ^[H: A test command parameter is not valid. I've tried with = in the comapre command.Still not workin. Please give any suggestions. Regards. Moderator's Comments: (HowTos)