Search Results

Search: Posts Made By: RudiC
1,563
Posted By RudiC
How about (be aware there's NO test1 in your data...
How about (be aware there's NO test1 in your data samples)
awk -F"[<>]" '
NR == FNR {T[$0]
next
}
/<id/ {TMP = $2
next
...
1,563
Posted By RudiC
It doesn't print "extra" spaces, but the two...
It doesn't print "extra" spaces, but the two leading spaces in the "id" line, which you do not remove with your sed command. Try again piping through sed -e 's/^ *<id=\"\(.*\)\">/\1/', i.e. include...
Showing results 1 to 2 of 2

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