Split each line by the delimiter, and output the first part after the split
awk -F'separator''{print $1}'
If it is print $0, output the complete string
The split string match
Split the data by spaces, and if the sixth part contains search, output the sixth part.
awk '{if(match($6,"search")>0) print $6}'
The if statement and match method are used here