Find and Replace Text with FART

Windows only: Get grep-like power at the Windows command line using Find and Replace Text (FART), a simple utility that delivers on its name’s promise. Perform batch find and replace operations over multiple text files throughout directories with FART in the Windows command window. The Hackszine blog outlines one practical FART usage example: stripping out UNIX line endings on a text file.

Let’s say a Linux buddy of yours sent you a bunch of HTML files and they have Unix line endings that are barfing in Notepad. One simple command fixes the problem, replacing all the newlines with a full PC carriage return, line feed combo:
fart --c-style *.html \n \r\n

FART is a free download for Windows only.


Comments (AU Comments | US Comments)

  • William

    What – you can install FART but not Cygwin or Perl?

    perl -pi~ -e “s/\r$//gi” file.txt

Post Your Comments

Got something to say? There are two ways to comment:

1. Guests

Click here to comment instantly.

2. Facebook Users

Click below to comment using your Facebook account.

We're looking for comments that are interesting, substantial or highly amusing. If your comments are excessively self-promotional, obnoxious, or even worse, boring, you will be banned from commenting. All comments are moderated.