How to split line using a string as the delimiter

To split line using a string as the delimiter, use the following command.

#awk -F 'delim' '{print $1; print $3}'

Where delim is the delimiter string.

Leave a Reply

Your email address will not be published. Required fields are marked *