Search Results

Search: Posts Made By: oky
7,020
Posted By pravin27
Oky, Could this help you? awk '/<NJCustomer>/ ,...
Oky, Could this help you?
awk '/<NJCustomer>/ , /<\/NJCustomer>/{if($0~/<OrderNumber>'$ord'<\/OrderNumber>/){print str;print...
7,020
Posted By bartus11
If order number is stored in shell variable ORD,...
If order number is stored in shell variable ORD, then this will work:
perl -ln0e "while (/<NJCustomer>.*?<\/NJCustomer>/gs){\$x=\$&;print \$x if \$x=~/<OrderNumber>$ORD<\/OrderNumber>/}" file
Showing results 1 to 2 of 2

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