Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. trying to avoid C++

trying to avoid C++

Scheduled Pinned Locked Moved The Lounge
c++htmltoolsquestion
19 Posts 13 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jerome Conus

    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

    K Offline
    K Offline
    KaRl
    wrote on last edited by
    #5

    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

    1 Reply Last reply
    0
    • J Jerome Conus

      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

      R Offline
      R Offline
      Rei Miyasaka
      wrote on last edited by
      #6

      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.

      F 1 Reply Last reply
      0
      • J Jerome Conus

        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

        R Offline
        R Offline
        rbid
        wrote on last edited by
        #7

        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

        1 Reply Last reply
        0
        • J Jerome Conus

          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

          A Offline
          A Offline
          Aamir Butt
          wrote on last edited by
          #8

          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

          R R 2 Replies Last reply
          0
          • J Jerome Conus

            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

            K Offline
            K Offline
            Kastellanos Nikos
            wrote on last edited by
            #9

            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

            1 Reply Last reply
            0
            • A Aamir Butt

              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

              R Offline
              R Offline
              rbid
              wrote on last edited by
              #10

              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

              1 Reply Last reply
              0
              • A Aamir Butt

                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

                R Offline
                R Offline
                Ryan Binns
                wrote on last edited by
                #11

                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"

                K 1 Reply Last reply
                0
                • R Rei Miyasaka

                  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.

                  F Offline
                  F Offline
                  feline_dracoform
                  wrote on last edited by
                  #12

                  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.

                  1 Reply Last reply
                  0
                  • J Jerome Conus

                    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

                    S Offline
                    S Offline
                    Stuart Dootson
                    wrote on last edited by
                    #13

                    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'

                    1 Reply Last reply
                    0
                    • R Ryan Binns

                      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"

                      K Offline
                      K Offline
                      KaRl
                      wrote on last edited by
                      #14

                      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

                      R 1 Reply Last reply
                      0
                      • K KaRl

                        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

                        R Offline
                        R Offline
                        Ryan Binns
                        wrote on last edited by
                        #15

                        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 1 Reply Last reply
                        0
                        • R Ryan Binns

                          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 Offline
                          K Offline
                          KaRl
                          wrote on last edited by
                          #16

                          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

                          R R 2 Replies Last reply
                          0
                          • K KaRl

                            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

                            R Offline
                            R Offline
                            raouls
                            wrote on last edited by
                            #17

                            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

                            K 1 Reply Last reply
                            0
                            • K KaRl

                              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

                              R Offline
                              R Offline
                              Ryan Binns
                              wrote on last edited by
                              #18

                              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"

                              1 Reply Last reply
                              0
                              • R raouls

                                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

                                K Offline
                                K Offline
                                KaRl
                                wrote on last edited by
                                #19

                                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

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups