[CentOS] OT: bash script for passwd and shadow manipulation

Rainer Duffner rainer at ultra-secure.de
Thu Nov 27 20:44:26 UTC 2008


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


More information about the CentOS mailing list