I have a CSV file included 11 columns with the similar content
SE Australia|PRM|2017-09-07T16:11:33|2641|-5537383165259899960|2017-09-07T16:12:17|"AU en2|networking-locator"|-|SC7_Electricians_Installer (only provides labor)|p-0715125|1
I am trying to use awk for separating each column, The problem is that in some sentences among 10 million records, the separator(pip) is part of the word. As you can see in below, pip is included in text "AU en2|networking-locator". Using the following command returns a wrong info.
awk -F "|" '{print $4"_"$6"_"$7"_"$10}'
The result
2641_2017-09-07T16:12:17_"AU en2_p-0715125
The excepted result,
2641_2017-09-07T16:12:17_"AU en2|networking-locator"_p-0715125
As you see AU en2 considered as a separate column, however, is part of AU en2|networking-locator. How can I change awk command in order to cover those columns?