Search Results

Search: Posts Made By: laknar
2,565
Posted By rdrtx1
try: awk '/^The...
try:
awk '/^The Record/{$0=p$0}/^TranTime/{p=$0"\n"}/The Record/||/^Accountnumber/||/^TranID/||/^Balance/ {print}' infile
5,391
Posted By Yoda
awk -F'[<|>]' ' { if($0 ~ /RequestType/) { ...
awk -F'[<|>]' ' {
if($0 ~ /RequestType/)
{
split($3,arr," ");
gsub(/(SUCCESS: |FAILED: )/,"",$0);
print;
printf "%s\n","<Status>"arr[1]"</Status>";
}
else print;
} ' xml_file
1,444
Posted By Don Cragun
Other than the double trailing space laknar...
Other than the double trailing space laknar expects after the 1st and 3rd occurrences of </RequestType> and the single trailing space laknar expects after the 2nd occurence of </RequestType>, the...
Showing results 1 to 3 of 3

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