1. The problem statement, all variables and given/known data 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) 2. Relevant equations 3. The attempt at a solution How can I extract the terminal and timeframe only? I tried echo $line | cut -d : -f2, 4 and it just gives me "1 10.0.0.48" is it not just delimited by spaces? even 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?