Search Results

Search: Posts Made By: arunkesi
2,944
Posted By Scrutinizer
Try: awk ' /Subject/ { ...
Try:
awk '
/Subject/ {
split($0,F,/(^|=)[^ ]*( |$)/)
for(i in F) P[F[i]]=i
sub(/>/,x)
print $1,$P["R"],$P["W"],$P["E"],$P["Q"] ">"
next
}
1
' file

Or using the...
2,944
Posted By zaxxon
I don't know how generic this must be but you can...
I don't know how generic this must be but you can try this:

$ awk '{sub(/>/,"",$NF); print $1,$5,$3,$4,$2">"}' infile
<Subject D="010101010101" B="1039502" C="2015-06-30" A="I">
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy