trying to avoid C++
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
Python. You can learn the language in 1 hour. And after that you get better and better by doing it. Instant love. Download it from www.python.org (or activestate.com). Read the tutorial. At least this worked for me. You can do it in Perl or VBScript or whatever too.. but too much learning.. to much hassle for me.
All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
Roger Wright
http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx -
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
What kinda of application is it for? Is it MFC...if so then use C++ and boost:regex++... It's frustrating being a genius and living the life of a moron!!!
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
if it's not something you'll be doing all the time (like every night), I would suggest using a text editor with regex search and replace. Like UltraEdit. if you'll be doing it on a regular basis, why not use Perl ? Download it from http://www.activestate.com [^] It's really easy to open a file replace something with regex and thats it. Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
Unix-like shell procedures, using something similar to
awk
?
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
awk might be good, as K(arl) suggested. Takes some learning though. I'm not sure if there's a Windows version available natively, but you can try Microsoft Services for Unix, if you don't mind downloading and installing the package (which takes a while). Personally I do all of my batch text processing in C# using regexes. Python's nice too.
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
Jerome Conus wrote: In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. Classical job for a scripting language called Perl (http://www.perl.com/[^]) Perl is a script programming language that is similar in syntax to the C language and that includes a number of popular Unix facilities such as
sed
,awk
, and tr. Perl is an interpreted language that can optionally be compiled just before execution into either C code or cross-platform bytecode. When compiled, a Perl program is almost (but not quite) as fast as a fully precompiled C language program. Perl is regarded as a good choice for developing common gateway interface (CGI) programs because it has good text manipulation facilities (although it also handles binary files). It was invented by Larry Wall. For running under PC, try activeperl. (Also mentioned on the link I provided) If you need some help on this issue, drop me a note.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard -
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
what about using VI for this. Download here[^]Commands are a bit difficult but doing this type of stuff with it is very cool. Found on Bash.org I'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet My Articles
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
My sugestion is to use Dreamweaver's search and replace. It is very powerfull for exacly this kind of work. - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234
-
what about using VI for this. Download here[^]Commands are a bit difficult but doing this type of stuff with it is very cool. Found on Bash.org I'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet My Articles
Aamir Butt wrote: what about using VI for this.
vi
... I did not use that editor for decades.. but even now, I did not find other powerfull editors like vi and emacs. I still think that XEmacs is still one of the best editors in town, although today I'm using Codewright and VisualStudio for editing code, both are still behind XEmacs or even vi.-- **Ricky Marek** (_AKA: rbid_)
-- "Things are only impossible until they are not" --- Jean-Luc Picard -
what about using VI for this. Download here[^]Commands are a bit difficult but doing this type of stuff with it is very cool. Found on Bash.org I'm going to become rich and famous after i invent a device that allows you to stab people in the face over the internet My Articles
Aamir Butt wrote: what about using VI for this At work, our official "IDE" is vi + makefiles. Some of us have gone nonstandard and cheekily installed gvim while nobody was watching ;)
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
awk might be good, as K(arl) suggested. Takes some learning though. I'm not sure if there's a Windows version available natively, but you can try Microsoft Services for Unix, if you don't mind downloading and installing the package (which takes a while). Personally I do all of my batch text processing in C# using regexes. Python's nice too.
win32 port of many useful UNIX utilities, including "gawk" which i suspect is the gnu awk download from here however, unless you already know how to use these UNIX commands, this isn't such a good idea.
-
Hi ! In an html file, I need to remove some characters which are comprised between two html tags. This processing has to be performed from a batch on many files. I feel like this would be too much effort to write a small C++ program to do that, and that I should be able to do this simple task with a script or something, but I've just no idea where to start. What would you suggest ? Thanks ! Jerome
Use jscript - look up jscript/javascript on MSDN. It's got regular expressions, which helps. Then you invoke it with cscript ... I use JScript to rename all my MP3 files consistently (and for anything else that is a bit too much for batch files). Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
Aamir Butt wrote: what about using VI for this At work, our official "IDE" is vi + makefiles. Some of us have gone nonstandard and cheekily installed gvim while nobody was watching ;)
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
Ryan Binns wrote: At work, our official "IDE" is vi + makefiles. Are you working for Jurassic Park? ;-P
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links
-
Ryan Binns wrote: At work, our official "IDE" is vi + makefiles. Are you working for Jurassic Park? ;-P
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links
K(arl) wrote: Are you working for Jurassic Park? hehe, no, but our development environment is Solaris, so almost ;) Perhaps Cretaceous Park :rolleyes:
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
K(arl) wrote: Are you working for Jurassic Park? hehe, no, but our development environment is Solaris, so almost ;) Perhaps Cretaceous Park :rolleyes:
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
Tell your managment there are new devices to input data called keyboards and it isn't useful to punch papers anymore. Generally they love that. Joke aside, currently working with HPUX11, SunOS5.7 and Linux9 (RedHat), I would say my favorite IDE is still Forte Developper Workshop on SunOS over HP DDE (not ergonomic enough) and KDE (too unstable). Personal opinion, of course.
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links
-
Tell your managment there are new devices to input data called keyboards and it isn't useful to punch papers anymore. Generally they love that. Joke aside, currently working with HPUX11, SunOS5.7 and Linux9 (RedHat), I would say my favorite IDE is still Forte Developper Workshop on SunOS over HP DDE (not ergonomic enough) and KDE (too unstable). Personal opinion, of course.
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links
K(arl) wrote: Joke aside, currently working with HPUX11, SunOS5.7 and Linux9 (RedHat), I would say my favorite IDE is still Forte Developper Workshop on SunOS over HP DDE (not ergonomic enough) and KDE (too unstable). Personal opinion, of course. just a side note: linux and kde have come a long way since dead rat, i mean, red hat 9. rh9 was released yonks ago... -- Raoul Snyman Saturn Laboratories e-mail: raoul.snyman@saturnlaboratories.co.za web: http://www.saturnlaboratories.co.za/ blog: http://blog.saturnlaboratories.co.za/ linux user: #333298
-
Tell your managment there are new devices to input data called keyboards and it isn't useful to punch papers anymore. Generally they love that. Joke aside, currently working with HPUX11, SunOS5.7 and Linux9 (RedHat), I would say my favorite IDE is still Forte Developper Workshop on SunOS over HP DDE (not ergonomic enough) and KDE (too unstable). Personal opinion, of course.
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links
K(arl) wrote: Tell your managment there are new devices to input data called keyboards and it isn't useful to punch papers anymore. Generally they love that. :rolleyes: Actually, the reason we use Solaris is because it's the environment that the software is deployed on. And a steaming pile of horse manure it is too (Solaris, not our program). It can't even keep time properly! :rolleyes:
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
K(arl) wrote: Joke aside, currently working with HPUX11, SunOS5.7 and Linux9 (RedHat), I would say my favorite IDE is still Forte Developper Workshop on SunOS over HP DDE (not ergonomic enough) and KDE (too unstable). Personal opinion, of course. just a side note: linux and kde have come a long way since dead rat, i mean, red hat 9. rh9 was released yonks ago... -- Raoul Snyman Saturn Laboratories e-mail: raoul.snyman@saturnlaboratories.co.za web: http://www.saturnlaboratories.co.za/ blog: http://blog.saturnlaboratories.co.za/ linux user: #333298
If I tell you I'm debugging X/Motif applications on these OS, you may understand I don't have any mean to influence technological choices regarding Unix systems :sigh:
Fold With Us! Sie wollen mein Herz am rechten Fleck Doch seh ich dann nach unten weg Da schlägt es links