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
Report from the X-Force group says attackers are using TOR to hide their crimes
Future Firefox extensions will be compatible with Chrome.
Better read this if you bought your computer before 2011
Users should upgrade to the new version as soon as possible
Xen project announces a privilege escalation problem for Qemu host systems
Attackers can compromise an Android phone just by sending a text message
PC vendor will pre-install Ubuntu on portables in India.
More embarrassment for Adobe's embattled multimedia tool
Mozilla’s script blocker add-on could be putting malware sites on the whitelist.
The Internet community officially banishes the notoriously unsafe Secure Sockets Layer protocol.