Using tr and dos2unix
The tr tool is a real wizard. This simple command lets you replace strings in text files. Whether you are replacing letters or just removing whitespace, you will be amazed at tr‘s versatility.
The tr command replaces characters
in text files. The command
reads the standard input and
sends the results to standard output. But
of course, you can use the familiar operators
to redirect both streams. In fact, tr
really shines in combination with other
The tr command expects two strings as
arguments and replaces all the occurrences
of the first argument in a text
with the second argument. This may
sound complicated, but let’s look at a
simple example. The following command
replaces the “e“s in “Petronella”
Longtime litigator revives an ancient suit against IBM alleging Linux infringes on Unix copyrights.
Specialty distro keeps the focus on advanced learning.
The openSUSE Conference will be held July 18-22, 2013, at the Olympic Museum in Thessaloniki, Greece.
Security breached at home sites of the CMS project.
Lead Java developer vows policy changes and more attention to fixing problems.
Vendor D-Wave scores big with a sale to NASA's Quantum Intelligence Lab.
Many package updates and Steam integration highlight the latest from the Mandriva-based community Linux.
Richard Stallman calls for the W3C to remain independent of vendor interests.
The new release supports nine architectures, 73 human languages, and zero non-Free components.
Fedora developers release the first alpha version of Fedora 19, known as Schrödinger’s Cat, for general testing. The final release is expected in July 2013.