↧
Answer by mklement0 for Need a way to strip extra CRLFs from the middle of...
If all you need is the removal of the field-internal CRLFs, try the following (assumes GNUawk, but it could be made to work with BSD awk as well):awk -v RS='\r?\n''/,[[:digit:]]{4,7}$/ { print; next }...
View ArticleNeed a way to strip extra CRLFs from the middle of records
We've got a data source that sends us files we need to automatically import into our system, but frequently there is bad data in them in the form of extra CRLFs inside one or two of the fields of some...
View Article