I want to withdraw the fourth field of the output of lastlog -u 'user'
however using cut -d' ' -f4
I can only withdraw the first field otherwise whitespace is output.
Username Port From Latest
auser pts/31 c-73-123-11-86.h Sun Jan 19 13:52:08 -0800 2014
I want to remove 'Sun Jan 19 13:52:08'. How can I do this considering there are multiple spaces in the line I want and using cut with specific subscript locations will produce erroneous results when usernames of different length are input. How can I solve this problem?