Timeline for Awk command to get the next line from the matched pattern and crop the string in between two patterns
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 9, 2016 at 14:34 | history | edited | Jeff Schaller♦ |
edited tags
|
|
| Jun 9, 2016 at 14:13 | answer | added | Sundeep | timeline score: 0 | |
| Jun 9, 2016 at 12:35 | answer | added | Michael Vehrs | timeline score: 0 | |
| Jun 9, 2016 at 10:30 | comment | added | Sundeep | @ramp add the command you have tried in question details... I tried a solution with paste, grep with Perl regex and sed.. would that work for you? | |
| Jun 9, 2016 at 10:07 | comment | added | ramp | @MichaelVehrs : Both xmlstarlet or xsltproc not available in our env. | |
| Jun 9, 2016 at 10:05 | comment | added | ramp | @sp asic curl --proxy <proxy_server_details:port> --url commodity.co | grep -e "Commodity Orgin" -e "Commodity Code & Dimension" -e "Commodity Serial #" -e "Client Name" -A1 > commodity.txt awk -F '>' '/Proxy Hostname/{getline; print $2}' commodity.txt | |
| Jun 9, 2016 at 10:00 | comment | added | Michael Vehrs |
Stock advice: use an XML-aware tool, such as xmlstarlet or xsltproc.
|
|
| Jun 9, 2016 at 7:11 | answer | added | cas | timeline score: 2 | |
| Jun 9, 2016 at 6:01 | history | asked | ramp | CC BY-SA 3.0 |