* sed search and replace
@ 2007-08-14 17:21 charles.bowers
0 siblings, 0 replies; only message in thread
From: charles.bowers @ 2007-08-14 17:21 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-14 17:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 17:21 sed search and replace charles.bowers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox