There is an array of data
https://example.com:description of the site/application:category
http://example.com:description of the site/application:category
android://package name:description of the site/application:category
android://package name|description of the site/application|category
I want to split the data into 3 columns
https://example.com description of the site/application category
http://example.com description of the site/application category
android://package name description of the site/application category
android://package name description of the site/application category
As I understand it, it is necessary to add a regEx to ignore the first “:” and also 2 argument for the divisor “|”
I tried this expression, but the output is incorrect
cat * | awk -F[“|”][:] ‘{print $1,$2, $3}’
Fresh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.