so I have this text file that I'm reading line by line
and here is an example of a line:
root pts/1 01-19 13:41 (10.0.0.48)
The Attempt at a Solution
How can I extract the terminal and timeframe only?
echo $line | cut -d : -f2, 4
and it just gives me "1 10.0.0.48"
is it not just delimited by spaces?
echo $line | cut -d ' ' -f2,4
only gives me "pts/1" and they're poorly formatted.
How can I get it to show me the terminal and timeframe only?