Search Results

Search: Posts Made By: davidsouk
3,639
Posted By davidsouk
here was my attempt to put it in a shell script: ...
here was my attempt to put it in a shell script:

===================================

#!/bin/sh

ATTR1=SitePartyId
ATTR2=AddressUsageType
ATTR3=TransportZoneType...
3,639
Posted By davidsouk
--------- rdcwayx, thank you very much!. this...
---------
rdcwayx, thank you very much!. this code works great. how can i put this in a shell script? I want to call this script whenever, the system generates the input file. Also, can you...
3,639
Posted By davidsouk
here is an example of a file that contains 2...
here is an example of a file that contains 2 records:

I need to pull out the following attributes:

1) requestID
2) ResultCode
3) SitePartyId
4) AddressUsageType ( this has multiple )
5)...
3,639
Posted By davidsouk
rdcwayx, thanks this might work for me: can you...
rdcwayx, thanks this might work for me: can you explain the code?

awk '{gsub(/></,">\n<")}1' response.xml|awk -F ">|<" '/requestID/||/SitePartyId/||/ResultCode/ {printf $3","}'

---------- Post...
3,639
Posted By davidsouk
How to retrieve value from xml tags
hello,

I have a file that have lines that contains xml tags. for each line, i want to retrieve the value from the following xml tags and output it to another file with the values only, comma...
10,880
Posted By davidsouk
thank you so much for the reply and works great...
thank you so much for the reply and works great for the example I gave earlier. As I was going through your example, I am a little confused as to what it all means. I tried some variations on...
10,880
Posted By davidsouk
How to get value from xml node using sed/perl/script?
hello,

new to this forum. but i have a requirement to extract the value from multiple xml node and print out the values to new file with comma seperated. would like to know how this would be done...
Showing results 1 to 7 of 7

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