[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep to a file adds x'0D'
From: |
Gary Aderhold |
Subject: |
grep to a file adds x'0D' |
Date: |
Wed, 20 Jun 2012 08:42:48 -0500 |
I'm using GNU grep 2.5.4. I'm grepping a binary file in Windows that
has record delimiters of CRLF (x'0D 0A'). My grep selects the proper
rows, but, when sending the results to a file, it's adding a CR to the
end of each record. So, now my records all end with x'0D 0D 0A'.
Is this a bug? Or, is there a way to tell grep to NOT add this extra
x'0D' byte?
Thanks, Gary
- grep to a file adds x'0D',
Gary Aderhold <=