I need to remove an extra pipe character at the end of header row of a pipe delimited csv file with sed. The literal string that I am trying to find is COLNAME|
Working on a GCP Windows server. The command I am trying to use:
"C:\Program Files (x86)\GnuWin32\bin\sed.exe" sed '0,/COLNAME"|"/s//COLNAME/' FILENAME
returns the output... sed.exe: -e expression #1, char 3: unterminated `s' command
I'm new to sed and have been playing around with the s command for a while but cannot seem to get the syntax correct.
Any suggestion on how to accomplish this?