GNU bug report logs -
#20474
tr command
Previous Next
Reported by: Joseph Piette <Joe.Piette <at> cantire.com>
Date: Thu, 30 Apr 2015 16:47:01 UTC
Severity: normal
Tags: notabug
Done: Pádraig Brady <P <at> draigBrady.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hello:
When transferring files from the Windows environment to the Linux environment we execute a script to remove the \cr characters. The script performs a simple
tr -d '\r' < input > output
Recently we were testing with files that contained a string with a single quote - "Paym't"
What the tr command is doing is not only removing the "\cr" characters but also the single quote. What we ended up with was "Paymt"
Any ideas?
Ami I using the tr command incorrectly?
We are running:
cat /proc/version
Linux version 2.6.32-504.12.2.el6.x86_64 (mockbuild <at> x86-027.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-9) (GCC) ) #1 SMP Sun Feb 1 12:14:02 EST 2015
cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)
Thanks.
________________________________
[email-signature-image_0003_CT_IconLogo_Sml_RGB.png]
Joe Piette
Senior Technical Specialist
Integration Architecture
Canadian Tire Corporation
2190 Yonge St.
Toronto, ON
M4P 2V8
T: 416.480.8867 | C: 416.433.4124
Joe.Piette <at> cantire.com
[email-signature-image_0002_COC_Standalone_Mark_4C_BIL_ENG.png]
[Message part 2 (text/html, inline)]
[image001.png (image/png, inline)]
[image003.png (image/png, inline)]
[image002.png (image/png, inline)]
[image004.png (image/png, inline)]
This bug report was last modified 10 years and 101 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.