Hi all,
here the string to parse:
I only need 0853.
I tried:
But I always get:
I used definitions like [0-9a-zA-Z]\{4\} to be more precise (and which works) but I was told, that it's not always sure, that it will be 4 characters and not sure if it's always from that pool of characters.
Thanks in forward.
laters
zaxxon
here the string to parse:
Code:
<Device dev_name="0853" status="Ready" configuration="RAID-5">
I only need 0853.
I tried:
Code:
sed 's/.*dev_name=\"\(.*[^\"]\)\" .*/\1/g'
But I always get:
Code:
0853" status="Ready
I used definitions like [0-9a-zA-Z]\{4\} to be more precise (and which works) but I was told, that it's not always sure, that it will be 4 characters and not sure if it's always from that pool of characters.
Thanks in forward.
laters
zaxxon