Object: to print text between < > using substr
Input:
lo0:flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>
Desired output:
UP,LOOPBACK,RUNNING,MULTICAST,IPv4
I have attempted the above, but have problems removing ">", using:
# nawk '{print substr($0, index($0,"<")+1)}' path_to_file
Input:
lo0:flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4>
Desired output:
UP,LOOPBACK,RUNNING,MULTICAST,IPv4
I have attempted the above, but have problems removing ">", using:
# nawk '{print substr($0, index($0,"<")+1)}' path_to_file