Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

FART - Find And Replace Text [CMD]


  • Please log in to reply
7 replies to this topic
BoBo¨
  • Guests
  • Last active:
  • Joined: --

Find and Replace Text with FART
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.

[More..]

:lol:

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
LOL, I can't believe a name like that :roll:

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
This post is well over two years old. Did you just happen to be searching the forums for words such as fart? :D
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

Chicken Pie 4 Tea
  • Members
  • 379 posts
  • Last active: Dec 12 2014 06:46 PM
  • Joined: 18 Aug 2009
No I think words like that just sort of find me :shock:

poserpro
  • Members
  • 525 posts
  • Last active: Apr 28 2013 04:39 AM
  • Joined: 21 Oct 2010
It will be better if someone can show me how to FART ;P, I meant the workflow or short tut for how to FART it.

TIA.
-p

msg appended: OK I see, it is Dos CMD, with parameters to execute.

Since Oct 11, 2010

Check my QRCode design if you wish: 

http://db.tt/CONU2zBY


"HelloWorld"
  • Guests
  • Last active:
  • Joined: --
OMG I would hate to be a teacher with the job of teaching how to use this to a class of teenagers

poserpro
  • Members
  • 525 posts
  • Last active: Apr 28 2013 04:39 AM
  • Joined: 21 Oct 2010
To Sir With FART ;P

Since Oct 11, 2010

Check my QRCode design if you wish: 

http://db.tt/CONU2zBY


gamax92
  • Guests
  • Last active:
  • Joined: --
C:>type apple.txt
Apples make you burp.
C:>cd FART
C:\FART>FART -in burp -out fart -file C:\apple.txt
C:\FART>cd ..
C:>type apple.txt
Apples make you fart.