extract part of a line with sed or awk
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?