I have a text file like this
'ABC&\]D' 'DEFGH' 'QUEMKLEMEL' 'SSBJ|!KFFL'
and would like to convert it to
'ABC&\]D'
'DEFGH'
'QUEMKLEMEL'
'SSBJ|!KFFL'
to split the textfile at the single quotes into a newline.
The original issue is to convert a bash script from windows (the EOL characters to Unix format). I tried
sed 's/\r//' input >output
but keep getting the error when I submit the script
sbatch: error: This does not look like a batch script.
It is a long text file from windows that was transferred to linux but does not work because of the EOL characters. I tried other options to convert it so thought can subset the issue, and try it this way.