Search Results

Search: Posts Made By: Tobias-Reiper
4,282
Posted By Don Cragun
Assuming the tags are in order as shown in your...
Assuming the tags are in order as shown in your sample, the following should work:
awk '/ref1/{r1=$0};/ref2/{r2=$0};/ref3/{r3=$0};/ref4/{print r1 r2 r3 $0}' file.xml
Note, however, that your code...
Showing results 1 to 1 of 1

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