Hi ffresh12.
do you need this ?
> /etc/passwd.NEW
cat /etc/passwd | awk ' BEGIN { FS=":"; OFS=":"}
{
print $0 >> "/etc/passwd.NEW"
print "User ",$1 >> "/etc/passwd.NEW"
print "User-ID ",$2 >> "/etc/passwd.NEW"
print "Group-ID ",$3 >> "/etc/passwd.NEW"
print "User Name ",$4 >> "/etc/passwd.NEW"
print "User Shell ",$5 >> "/etc/passwd.NEW"
}'
FS means the field seperator for input in awk
OFS means the output field seperator ( the default in awk is a BLANK )
That is what you get in /etc/passwd.NEW
Donhoke:4454:44

on Hooke:/var/adm
User Donhoke
User-ID 4454
Group-ID 44
User Name Don Hooke
User Shell /var/adm
Greetings from Germany
Peter F.