Announcement

Collapse
No announcement yet.

Windows text file parser; I need to compare two text files... how?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows text file parser; I need to compare two text files... how?

    I've got two text files, the contents of which I need to compare. I piped the 'sc query type= all' command to a text file on two different occasions. I did it once with the firewall turned on and once with the firewall turned off. I now need to compare which services are stopped. I could do it manually, but I'd rather do it with some kind of tool.

    BTW, I saw the built in 'comp' CLI command. I pointed it to my two text files and was greeted with this output: "The files are different sizes." Weee! I then realized that 'comp' wasn't the tool that I needed.

    I can't remember how many times I have wanted some kind of tool to parse through text files either to compare them in some way or to look through each of them and then cull out data based on a set of criterion.

    Any suggestions?
    Wesley David
    LinkedIn | Careers 2.0
    -------------------------------
    Microsoft Certifications: MCSE 2003 | MCSA:Messaging 2003 | MCITP:EA, SA, EST | MCTS: a'plenty | MCDST
    Vendor Neutral Certifications: CWNA
    Blog: www.TheNubbyAdmin.com || Twitter: @Nonapeptide || GTalk, Reader and Google+: [email protected] || Skype: Wesley.Nonapeptide
    Goofy kitten avatar photo from Troy Snow: flickr.com/photos/troysnow/

  • #2
    Re: Windows text file parser; I need to compare two text files... how?

    http://www.google.com/search?source=...are+text+files

    http://msexchangeteam.com/archive/2004/03/18/92207.aspx
    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Re: Windows text file parser; I need to compare two text files... how?

      beyond compare
      ________
      Orthia
      Last edited by DYasny; 6th March 2011, 18:36.
      Real stupidity always beats Artificial Intelligence (c) Terry Pratchett

      BA (BM), RHCE, MCSE, DCSE, Linux+, Network+

      Comment


      • #4
        Re: Windows text file parser; I need to compare two text files... how?

        Originally posted by DYasny View Post
        beyond compare
        Never heard of that one, you got a link for it.
        1 1 was a racehorse.
        2 2 was 1 2.
        1 1 1 1 race 1 day,
        2 2 1 1 2

        Comment


        • #5
          Re: Windows text file parser; I need to compare two text files... how?

          http://www.scootersoftware.com/

          it's a REAL SOFTWARE package and lots of developers use it
          ________
          Ford Orion Picture
          Last edited by DYasny; 6th March 2011, 18:37.
          Real stupidity always beats Artificial Intelligence (c) Terry Pratchett

          BA (BM), RHCE, MCSE, DCSE, Linux+, Network+

          Comment


          • #6
            Re: Windows text file parser; I need to compare two text files... how?

            I knew I should have d it before posting.
            1 1 was a racehorse.
            2 2 was 1 2.
            1 1 1 1 race 1 day,
            2 2 1 1 2

            Comment


            • #7
              Re: Windows text file parser; I need to compare two text files... how?

              hehe google rocks
              ________
              Flint engine south
              Last edited by DYasny; 6th March 2011, 18:37.
              Real stupidity always beats Artificial Intelligence (c) Terry Pratchett

              BA (BM), RHCE, MCSE, DCSE, Linux+, Network+

              Comment


              • #8
                Re: Windows text file parser; I need to compare two text files... how?

                pspad ROCKS and has built-in compare. Might not be the best compare in the world, but since I have it installed to edit text anyways..

                http://www.pspad.com/
                VCP on vSphere (4), MCITP:EA/DBA, MCTS:Blahblah

                Comment


                • #9
                  Re: Windows text file parser; I need to compare two text files... how?

                  Thats odd, nobody mentioned WinMerge, I know alot of developers that use that one.
                  "...if I turn out to be particularly clear, you've probably misunderstood what I've said” - Alan Greenspan

                  Comment


                  • #10
                    Re: Windows text file parser; I need to compare two text files... how?

                    Wow! Thanks to all for the great products. Keep 'em coming!

                    The tip about using Word as a comparison tool deserves a good forehead smack and a "duh!" I always forget about Word. I'm more of a Notepad guy myself. Sometimes I'll use Wordpad if I'm feeling adventurous.

                    It would be nice if the tool had a CLI interface, a bit like comm, diff, or cmp.

                    Maybe I'm asking too much.
                    Wesley David
                    LinkedIn | Careers 2.0
                    -------------------------------
                    Microsoft Certifications: MCSE 2003 | MCSA:Messaging 2003 | MCITP:EA, SA, EST | MCTS: a'plenty | MCDST
                    Vendor Neutral Certifications: CWNA
                    Blog: www.TheNubbyAdmin.com || Twitter: @Nonapeptide || GTalk, Reader and Google+: [email protected] || Skype: Wesley.Nonapeptide
                    Goofy kitten avatar photo from Troy Snow: flickr.com/photos/troysnow/

                    Comment


                    • #11
                      Re: Windows text file parser; I need to compare two text files... how?

                      Windiff is a nice tool either:
                      http://support.microsoft.com/kb/159214
                      Marcel
                      Technical Consultant
                      Netherlands
                      http://www.phetios.com
                      http://blog.nessus.nl

                      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
                      "No matter how secure, there is always the human factor."

                      "Enjoy life today, tomorrow may never come."
                      "If you're going through hell, keep going. ~Winston Churchill"

                      Comment

                      Working...
                      X