extract part of a line with sed or awk
Hi all,
I want to extract a part of a line which comes between "ds:" and "st:" in output of a /proc/... file. I used awk and sed and tried many ways similar to what was suggested on this forum in other threads but no luck. Here's how the part of file I want to extract looks like: 0: cs:WFConnection st:Unknown/Unknown ds:Inconsistent/DUnknown C r--- I want to extract "Unkonwn/Unknown" part. Can someone please help me out here? Thanks |
Code:
sed 's/.*st:\(.*\)ds.*/\1/' |
Quote:
|
All times are GMT -5. The time now is 12:32 AM. |