129 reputation
17
bio website
location
age
visits member for 2 years, 5 months
seen 2 hours ago

Mar
26
comment How can I copy a (big) directory over another changing only the files that differ?
@new123456 Yeah it seems the windows git bash version doesn't have it; I'm on a unix box now and it's in the docs. Is there some other command that will copy the files from A to B and overwrite?
Mar
23
comment How can I copy a (big) directory over another changing only the files that differ?
@new123456 -T is not documented in --help for me can you paste the description in the answer please. :)
Mar
21
comment How can I copy a (big) directory over another changing only the files that differ?
Does not work. I am not sure if this is some name convention but cp -ru folder-A folder-B will simply copy folder-A inside folder-B not copy contents of A inside B and overwrite, which would be the desired effect.
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
managed to get it working from the discussion in the comments on the question. But thanks anyway! :)
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
@CharlieRB until retesting it as far as I was aware that was one of the wrong answer (ie. didn't work) so I saw no point in mentioning such things (and still don't). Dunno why you're so angry about it. In any case, resolved.
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
@techie007 I'm not deleting, I'm replacing so it's not a duplicate. I've re-tested with extended and \n and this time it seems to work... dunno what happened last time it didn't replace properly. Thx.
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
@techie007 What do I do for the replacement where I can't insert line breaks?
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
@CharlieRB that won't work, I need block replace and while notepad++ can get some sort of block replace though regular expression converting the actual block to a regular expression is a pain in the ass and on top of that notepad++ doesn't have support for the actual replacement text being a block; I've tryied several ways of doing it with it, doesn't work. Both the replaced and the new text are BLOCKS.
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
@CharlieRB typical source file, complex copyright notice and other metadata, number of files I'd say hundreds
Feb
27
comment Find and replace block of text (with other blocks of text) in multiple files
replall is "per line" not "per block" wingrep is "per line" as well; pretty sure ultraedit was too