Re: OT: bash script for passwd and shadow manipulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




Am 27.11.2008 um 21:35 schrieb Erick Perez:


thanks Robert,

If i do what you said
for linia in `cat /etc/passwd`
do
   user=echo $linea | awk -F :  '{ print $1 }'
   nombre=echo $linea | awk -F :  '{ print $5 }'
   echo "the name is $nombre"
   echo "zmprov ma $user@$domain displayName $nombre">>$file

   x=$[x+1]
done

then I have:
the name is echo

So it seems i have problems with quotes...
either " or ` goes somewhere....
now..on my way to reaad about escape sequences in echo.


Backquotes
Around everything right of the "=".


Rainer
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux