I am new to Unix Shell scripting have a requirement where I have to replace the "unix 1 byte delimiter" with the "pipe" separator and also remove any carriage returns and line feeds if any
Any attempts/ideas/thoughts from your side?
What is the "unix 1 byte delimiter"? In your sample, I see you replace some spaces with pipes, and some not. Please describe the logics.
sed 's/\x0/|/g' $file > $DEST_DIRNAME/${newfile%.$ORIG_FILEEXT}.$DEST_FILEEXT
---------- Post updated at 09:29 PM ---------- Previous update was at 04:51 PM ----------
I have a ASCII null separated file as shown in the example and what I am trying to do is to replace the Null separator with | (pipe) without affecting the nulls in the individual fields like "Jungle Hill" ,"City Road" & "SE23 3UX"