Search Results

Search: Posts Made By: qqp
4,246
Posted By qqp
needs to be automated as its becoming a daily...
needs to be automated as its becoming a daily import to our db.


Simply put, I want to leave the LF marks untouched.... and remove all CRLF when CRLF are found together


thanks all
4,246
Posted By qqp
screenshots attached
screenshots attached
4,246
Posted By qqp
the awk command produced the same issue..... bad...
the awk command produced the same issue..... bad CRLF remains and correct LF at line endings changed to CRLF.

what is needed is to remove the CRLF in mid-row, and the correct line endings remain...
4,246
Posted By qqp
I've attached a sample. You'll see LF at the end...
I've attached a sample. You'll see LF at the end of an appropriate line break, and CRLF within fields I want to remove.

thanks for the insights.
4,246
Posted By qqp
This didn't work. The new file was created but:...
This didn't work. The new file was created but:

Instances of LF were changed to CRLF and original instances of CRLF were ignored.
4,246
Posted By qqp
Removing CRLF combo but not CR or LF when alone
What is the command or script to remove CRLF but only when joined?

Tried using below but removed all instances of either
cat a.txt | tr -d "\r\n" > b.txt
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy