Questions tagged [fart]

FART (Find And Replace Text) is a command line utility to search and replace text in files; executable name: `fart.exe`.

FART (Find And Replace Text) is a command line utility to search and replace text in files; executable name: fart.exe. Reference http://fart-it.sourceforge.net/.

7 questions
4
votes
3 answers

remove slash , blackslash using FART

how can i remove/replace "/" from a text file ? am using FART for this , it's working okey for all the characters but for some reason it doesn't see the "/" character Fart.exe --remove myFile.txt "/"
Exorcismus
  • 2,243
  • 1
  • 35
  • 68
1
vote
1 answer

Windows Bat Find and Replace Line Breaks in Specific Lines

I am not a pro developer and need a simple solution. I have tried using fart.exe within a Windows Bat file to accomplish this, but having trouble finding the exact lines I need to replace line breaks. In an XML file, here is what I am trying do. I…
Jeff Bunn
  • 11
  • 1
0
votes
0 answers

Replacing a String inside a file with a given input

I am using a program which checks a config file at every start with the given settings, I am editing a specific line inside the config file very often to find out which option is the best. I wanna add a option to my batch script which asks me for a…
Sneazy好
  • 1
  • 1
0
votes
1 answer

Replace text -> (how)?

So im trying to replace some text in a large .txt file. Im using the open source tool "fart" FART c:\test\test.txt c:\test\test_new.txt "->" "" I want to remove all "->" in my text file. But when using the code i posted above, it seem like it dose…
Daniel
  • 97
  • 1
  • 8
0
votes
1 answer

Looping Over fart.exe And Replacing Search and Replace Text With Variables

I have a somewhat complex search and replace that I need to do. I am using a batch file that loops over and executes fart.exe and I am trying to input strings from two different arrays into the "search" field and the "replace" field. Everything is…
ChipnCharge
  • 508
  • 5
  • 7
0
votes
1 answer

Fart.exe replace two carriage returns in a row

I have csv file where I'm trying to replace two carriage returns in a row with a single carriage return using Fart.exe. First off, is this possible? If so, the text within the CSV is laid out like the below where "CRLF" is an actual carriage…
slybitz
  • 689
  • 1
  • 7
  • 18
0
votes
2 answers

Issues in using fart with batch script. Double forward slash and multiple occurrence

I am trying to create batch script that edits few java files in project due to some development environment issues. One of the files have text which needs to be commented. So text (say abc(); ) will become commented text (//abc();). Thus, I need to…
ashu
  • 1,197
  • 2
  • 14
  • 30