Subscribe to the newsletter or RSS feed to receive updates automatically blog!

FART, a simple utility GREP-LIKE for Windows



FART (Find and Replace Text utility) is free utility for Windows used by the command line.

E 'is very similar to the function "grep" Linux / Unix, because it allows for quick search inside entire directory in a recursive and to carry out operations to "find / replace" massive content of the files.

The use of FART is very simple:

fart [opzioni] filename-pattern stringa-da-ricercare [stringa-da-sostituire]

Among the many options available to the most interesting are, in my opinion, the following:

  • -r a recursive process in all subfolders
  • -c printing a video file names, the number of matches found and Total
  • -i not search "case-sensitive"
  • -C interprets backslashes "\" as characters in "C-style"

For example, if we have a folder containing the files downloaded in html format UNIX ( "\ n" as the character of new line) and we want them to adapt to Windows format ( "\ r \ n") we simply launch FART in this manner:

fart --c-style *.html \n \r\n

If instead we want to identify all files that contain a certain string (for example, the string "TODO"), highlighting the number of occurrences, launched FART goes like this:

fart -nr * TODO

Download FART or visit the official website.

Via Hackszine



Did you like this article? Sign up now to receive updates or news articles:
Subscribe to RSS feeds write to the RSS feed


Still no comment '

Comments RSS feed for this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Nothing2Hide © 2006 All rights reserved.

License | Disclaimer

Close
Send e-mail