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