I am stuck up with cutting timestamps in the beginning from /var/log/messages.I need the output of all lines from /var/log/messages cutting timestamps in the beginning.I did this:cut -d   -f4-30 /var/log/messagesbut first lines still have the timestamps. I don't know how to use my cut command in proper way to have a result without timestamps.
Cut timestamps in file
linux
I know you asked for cut, but, IMO, awk is so much more robust here:awk '{$1=$2=$3=; print $0}' /var/log/messagesThis skips the first three columns and prints the rest. awk is way more robust since its default field separator is one or more space or tab characters. cut is limited to a single character, hence your issue, I think.