Timeline for How to extract particular field from rows from a file, based on matching subsequent rows
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 14, 2015 at 12:47 | comment | added | Utsav |
I was also able to achieve this by this command but it is slower egrep -w ""\<SOURCE"|"SOURCEFIELD.*XYZ.*"" sample.xml|grep -B1 XYZ|grep -w SOURCE|awk -F" NAME =" '{print $2}'|awk '{print $1}'|sed 's/"//g'
|
|
| Dec 14, 2015 at 12:45 | vote | accept | Utsav | ||
| Dec 14, 2015 at 12:02 | history | edited | RobertL | CC BY-SA 3.0 |
minor corrections
|
| Dec 14, 2015 at 11:50 | history | edited | RobertL | CC BY-SA 3.0 |
better description of code
|
| Dec 14, 2015 at 11:43 | history | answered | RobertL | CC BY-SA 3.0 |