Hi,
and however I'm a c*t
please I need to find in a input.txt via batch all the string that are identical to:
and replace to:Code:interlaced="1" num="25"
How can I do it possibly using fart.exe or gsar?Code:interlaced="0" num="50"
thanks
+ Reply to Thread
Results 1 to 22 of 22
-
-
If you are asking about this after we've already directed you to those programs, you clearly aren't doing your homework and don't deserve the benefit of using them.
Look. It. Up.
It's staring you in the face in their documentation.
Scott -
These threads remind me of the house next door.
The dear lady died some four years ago but a cat is still seen entering under a yard door intent that there is someone there who will feed it. -
-
for example:
Code:sed.exe -i "s/interlaced="1" num="25"/interlaced="0" num="50"/" input.txt
-
Code:
sed.exe -i s/"interlaced="1" num="25""/"interlaced="0" num="50""/ input.txt
-
Code:
fart.exe -C -V -i input.txt "interlaced="1" num="25"" "interlaced="0" num="50""
-
Let the cat escape.
@marcorocchini
Do you even realize how much more willing people would be to help you if you stopped your extremely annoying cat shit nonsense? What is wrong with you? -
It makes you look like a complete idiot https://en.wikipedia.org/wiki/Escape_sequences_in_C
Find And Replace Text v1.99b by Lionello Lunesu
Usage: FART [options] [--] <wildcard>[,...] [find_string] [replace_string]
Options:
-h, --help Show this help message (ignores other options)
-q, --quiet Suppress output to stdio / stderr
-V, --verbose Show more information
-r, --recursive Process sub-folders recursively
-c, --count Only show filenames, match counts and totals
-i, --ignore-case Case insensitive text comparison
-v, --invert Print lines NOT containing the find string
-n, --line-number Print line number before each line (1-based)
-w, --word Match whole word (uses C syntax, like grep)
-f, --filename Find (and replace) filename instead of contents
-B, --binary Also search (and replace) in binary files (CAUTION)
-C, --c-style Allow C-style extended characters (\xFF\0\t\n\r\\ etc.) -cvs Skip cvs dirs; execute "cvs edit" before changing files
--svn Skip svn dirs
--remove Remove all occurences of the find_string
-a, --adapt Adapt the case of replace_string to found string
-b, --backup Make a backup of each changed file
-p, --preview Do not change the files but print the changes
Last edited by teodz1984; 26th Nov 2019 at 22:18.
-
The domestic cat does not seek out it's own food but relies on others to feed it.
Whether also applies here, since the OP needs to be hand-fed, many languages that require quotes inside other quotes (which typically act as a delimiter) substitute the internal double-quotes to single=quotes. Thus find "I am a 'cat'" replace "I am a 'lazy stupid annoying cat'" -
batch file programming is learned... If you don't know tor care to learn the basics, it will be hard for you...
If you keep on asking for someone to produce your code you will never learn
https://en.wikibooks.org/wiki/Windows_Batch_ScriptingLast edited by teodz1984; 26th Nov 2019 at 22:32.
-
Code:
fart.exe -i %ProjectSourceForTotalcode% "interlaced=\"1\" num=\"25\"" "interlaced=\"0\" num=\"50\""
wow this worksthankss
-
-
You mean powershell being windows only? It's portable meaning it runs on Linux and Mac too but most Linux folks reject MS tech because of ideology...
Similar Threads
-
how to remove the exactly string colorMatrix(mode="Rec.601->Rec.709") ?
By marcorocchini in forum Newbie / General discussionsReplies: 16Last Post: 10th Aug 2019, 23:40 -
how to find and replace string that contain % ?!?
By marcorocchini in forum Newbie / General discussionsReplies: 11Last Post: 18th Feb 2019, 14:08 -
how to find "whatever" string lenght and replace
By marcorocchini in forum Newbie / General discussionsReplies: 3Last Post: 3rd Apr 2016, 13:49 -
how to find and replace (add a REM) a text string inside a txt file?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 10th Nov 2015, 15:58 -
[SOLVED] "--ipratio" "--pbratio"+"--scenecut" "--minkeyint" / "--keyint
By Kdmeizk in forum Video ConversionReplies: 14Last Post: 21st Jun 2015, 07:21