Search Results

Search: Posts Made By: paul1234
1,591
Posted By rdrtx1
awk ' /<FollowOnFrom>/ {c=1} ...
awk '
/<FollowOnFrom>/ {c=1}
/<ContractRequest .*_LoadId=/ && c==1 {c++}
/<_LocalId>.*<\/_LocalId>/ && c==2 {FS="[<>]"; $0=$0; print $3; exit}
' xml_file
1,599
Posted By Don Cragun
To be safe in case spaces, tabs, other IFS...
To be safe in case spaces, tabs, other IFS characters are later added to the value assigned to the src_path variable, I think you should also quote the expansion of src_path in the redirection at the...
1,599
Posted By rdrtx1
src_path=/informatica/apps/logs/fin/ote/SrcFiles/S...
src_path=/informatica/apps/logs/fin/ote/SrcFiles/Source/Contracts20170706092332/Contracts20170706092332 ;
dos2ux < "$src_path/CON_zip_path_1.txt" | while read line; do
echo "$src_path$line"
unzip...
1,214
Posted By Scrutinizer
Try: awk '/ContractWorkspace\.xsd/{f=1}...
Try:
awk '/ContractWorkspace\.xsd/{f=1} $1=="_LocalId"{print $2 (f?",True":",False")}' RS=\< FS=\> file
1,751
Posted By RavinderSingh13
Hello paul1234, Apologies missed it, please...
Hello paul1234,

Apologies missed it, please write only code in the code tags and information out side of code tags like I am writing here as an example. Could you please try following and let me...
1,751
Posted By RavinderSingh13
Hello paul1234, Could you please try...
Hello paul1234,

Could you please try following and let me know if this helps you.
Solution 1st: Looking for string <_LocalId> with making field separator -F[[><]' as follows.

awk -F'[><]'...
Showing results 1 to 6 of 6

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