VideoHelp Forum
+ Reply to Thread
Results 1 to 22 of 22
Thread
  1. 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:

    Code:
    interlaced="1" num="25"
    and replace to:
    Code:
    interlaced="0" num="50"
    How can I do it possibly using fart.exe or gsar?

    thanks
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  3. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    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.
    Quote Quote  
  4. Originally Posted by jagabo View Post
    hint: escape

    the problem is the parse of " " " " double quotes
    Quote Quote  
  5. for example:

    Code:
    sed.exe -i "s/interlaced="1" num="25"/interlaced="0" num="50"/" input.txt
    dont' work
    Quote Quote  
  6. Code:
    sed.exe -i s/"interlaced="1" num="25""/"interlaced="0" num="50""/ input.txt
    dont' work cat
    Quote Quote  
  7. Code:
    fart.exe -C -V -i input.txt "interlaced="1" num="25"" "interlaced="0" num="50""
    don't cat
    Quote Quote  
  8. Originally Posted by marcorocchini View Post
    Originally Posted by jagabo View Post
    hint: Escape

    the problem is the parse of " " " " double quotes
    escape
    Quote Quote  
  9. 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?
    Quote Quote  
  10. why?
    Quote Quote  
  11. 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.
    Quote Quote  
  12. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    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'"
    Quote Quote  
  13. Originally Posted by Groucho View Post
    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?
    no
    Quote Quote  
  14. 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_Scripting
    Last edited by teodz1984; 26th Nov 2019 at 22:32.
    Quote Quote  
  15. \"

    escape

    Quote Quote  
  16. Originally Posted by teodz1984 View Post
    \"

    escape

    Image
    [Attachment 50967 - Click to enlarge]

    mmmmmmm
    Quote Quote  
  17. Code:
    fart.exe -i %ProjectSourceForTotalcode% "interlaced=\"1\" num=\"25\"" "interlaced=\"0\" num=\"50\""

    wow this works thankss
    Quote Quote  
  18. Member stax76's Avatar
    Join Date
    Nov 2009
    Location
    On thin ice
    Search PM
    Originally Posted by teodz1984 View Post
    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_Scripting
    It's really garbage compared to powershell...
    Quote Quote  
  19. But and even that is just for one platform.
    Quote Quote  
  20. Member stax76's Avatar
    Join Date
    Nov 2009
    Location
    On thin ice
    Search PM
    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...
    Quote Quote  
  21. oh ok, good to know.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!