Removing blank and comment lines...

Removing blank and comment lines...

1

    Feb 07, 2005#1

    I know this should be a simple macro... But for the life of me, I am not seeming to get how to write these macros. (of course, my programming skills have lain dormant for several years. *sigh*)

    Anyway, please help if you can.

    The commented lines start with # - if it weren't such a huge file, I'd manually do it - but it's 190+ pages of text.

    Thanks.

    -Drake Steele :D

    206
    MasterMaster
    206

      Feb 07, 2005#2

      You might have to run it two or three times to get them all (don't ask why)


      InsertMode
      ColumnModeOff
      HexOff
      UnixReOn
      Top
      Find RegExp "^[#].*\p"
      Replace All ""
      Software For Metalworking
      http://closetolerancesoftware.com

      6,683583
      Grand MasterGrand Master
      6,683583

        Feb 07, 2005#3

        Comment lines starting with # in column 1 can be deleted with regular search expression %#*^p in UltraEdit style. Replace it with simply nothing.

        How to delete blank lines is described in the FAQs.

        Simply do the 2 Replace All commands and record it during execution to create the macro.
        Best regards from an UC/UE/UES for Windows user from Austria

        3
        NewbieNewbie
        3

          Aug 31, 2005#4

          mrainey56,

          Thanks again. This time it worked. Little embarrased that I didn't turn on reg expressions. With the difference between Unix regexp and UEdit I guess I thought his would be on by default. When I checked the box it found and deleted "most" of them. Had to run it twice for only 10 lines of text with blank lines. I appreciate the reply.