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”
Buy this article as PDF
A new study says it is possible to unmask 81% of TOR users.
Redmond joins the revolution by turning the .NET Core Runtime into a GitHub project.
Users only had 7 hours to update before the intrusions started.
It's official: The new web arrives
Kernel king admits his tone has alienated volunteers, but says the demands of the process require directness.
New flaw in an old encryption scheme leaves the experts scrambling to disable SSL 3
Lennart Poettering wants to change the way Linux developers talk to each other.
Enterprise giant frees itself from ink and home PCs (and visa versa).
Mozilla’s product think tank sinks silently into history.
TODO group will focus on open source tools in large-scale environments.