08-14-07 06:20 PM
I'm trying to use a tag in sed, so I can tag part of the line and
replace other parts as show below.
Do you know what I'm doing wrong?
sed 's/\nuserPrincipalName .+\n)/\nuserPrincipalName:\1uid:\1/g'
OUTPUT-ba.txt > output.txt
output-ba.txt
userPrincipalName: Joe Mama
userPrincipalName: Yo Mama
output.txt
userPrincipalName: Joe Mama
uid: Joe Mama
userPrincipalName: Yo Mama
uid: Yo Mama
[ Post a follow-up to this message ]
|