Question:
Batch file to replace text?
anonymous
2006-09-17 10:29:35 UTC
check the above question out, originally asked by music-lad.

Ok, I got a bit hissy with him, but then I realised that his thread was the funniest thing I'd ever seen on this forum. (as a slight aside, people, he gave me back as good as he got - you just GOTTA admire him for that - he'll go a long way in his life, he just hasn't figured out how the sat-nav in his CAReer works yet - he will)

you need to be a bit of a propellor-head to understand why this is so funny. If you *think* you're a propellor head, but don't laugh so loud you that the tears are running down your LEGS, you're not one of us. If you don't even know what a propellor-head is - move on to question number next, this is all written in a foreign language.

He got three answers: all of them told him how to do it in YOOOOONIIIIIIX - even the best answer he chose was (mostly)written in SED (an acronym meaning "Stream EDitor"- part of UNIX and yup, you guessed? - SED's been around longer than that place in Seattle
Three answers:
Rose D
2006-09-18 13:18:55 UTC
You're aware that SED has been ported to Windows, right? It's not elegant, but it's easier than trying to do text processing with a batch file. (I'd just use Perl myself...)
?
2016-12-15 14:25:35 UTC
there is not an inherent dos command which will try this. yet there's a unix command called fgrep which you'd be waiting to acquire and run in DOS to do it. in any different case, this could be a exceedingly hassle-free cscript/wscript script to jot down.
anonymous
2006-09-17 10:36:24 UTC
please can you choose me as best answer cos i need points!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...