Loading ...
Sorry, an error occurred while loading the content.
 

Deleting Range of lines

Expand Messages
  • Steve Kalynuik
    Anyone know why this isn t working, please: H= Delete Lines (Range) ^!Set LS=^?[Line Start=1] ^!Set LE=^?[Line End=2] !Set a = LS ^!SetCursor ^%line%: a ...
    Message 1 of 18 , Apr 26 10:05 PM
      Anyone know why this isn't working, please:

      H="Delete Lines (Range)"
      ^!Set LS=^?[Line Start=1]
      ^!Set LE=^?[Line End=2]
      !Set a = LS
      ^!SetCursor ^%line%: a

      :loop
      ^!DeleteLine
      ^!Inc %a%
      if ^%a% < $LE$ loop
      :next
      ^!StatusClose
      ;end

      I want to have a clip that asks, to delete certain range of lines from the open document(s) and then delete them.

      It's been a while since I worked clips in NoteTab, so I am bloody rusty ;)

      Any help would be kind.
      Thank-you
      Steve
    • Sheri
      ... Many problems. Use wizards with curly braces not sqare brackets when you want to use the result in a variable. Use percent signs around variable names. Use
      Message 2 of 18 , Apr 27 4:48 AM
        --- In ntb-clips@yahoogroups.com, "Steve Kalynuik" <skalynuik@...> wrote:
        >
        > Anyone know why this isn't working, please:
        >
        > H="Delete Lines (Range)"
        > ^!Set LS=^?[Line Start=1]
        > ^!Set LE=^?[Line End=2]
        > !Set a = LS
        > ^!SetCursor ^%line%: a
        >
        > :loop
        > ^!DeleteLine
        > ^!Inc %a%
        > if ^%a% < $LE$ loop
        > :next
        > ^!StatusClose
        > ;end
        >
        > I want to have a clip that asks, to delete certain range of lines
        > from the open document(s) and then delete them.


        Many problems. Use wizards with curly braces not sqare brackets when you want to use the result in a variable. Use percent signs around variable names. Use a caret in front of a variable name to evaluate it (get its value). Not possible to evaluate variables that have never been set, as you've done with ^%line%.

        Following should work (untested). I think I'd remove the Status commands.

        H="Delete Lines (Range)"
        ^!Set %a%=^?{Line Start=1}
        ^!Set %LE%=^?{Line End=2}
        ^!StatusShow "Hello"
        ^!Jump ^%a%
        :loop
        ^!DeleteLine
        ^!Inc %a%
        if ^%a% < ^%LE% loop else next
        !StatusClose
        ;end

        To delete a series of lines, I wouldn't use ^!DeleteLine. I would ^!setwordwrap off, prompt for line numbers, then select from the beginning of line 1 to the beginning of line 2 +1, and then use:

        ^!Menu Edit/Delete

        Then no need for looping.

        Regards,
        Sheri
      • Steve Kalynuik
        Thank-you, your direction lead me to new ideas about the problem and I came up with this: H= Delete Line Range ; starting and ending lines ^!Set %sl%=^?{Start
        Message 3 of 18 , Apr 27 6:50 AM
          Thank-you, your direction lead me to new ideas about the problem and I came up with this:

          H="Delete Line Range"
          ; starting and ending lines
          ^!Set %sl%=^?{Start of Line Range}
          ^!Set %el%=^?{End of Line Range}
          ; number of lines to delete
          ^!Set %nl%= ^%el% - ^%sl% + 1
          ;
          ^!Jump ^%sl%
          :Loop
          ^!DeleteLine
          ^!Dec ^%nl% - 1
          ^!If %nl% = 0 End
          ^!Goto End
          ^!Goto Loop
          :End

          But it still does not work, only deletes 1 line but deletes atleast deletes the line set %sl%

          Any other ideas please.
          Steve

          > Many problems. Use wizards with curly braces not sqare brackets when you want to use the result in a variable. Use percent signs around variable names. Use a caret in front of a variable name to evaluate it (get its value). Not possible to evaluate variables that have never been set, as you've done with ^%line%.
          >
          > Following should work (untested). I think I'd remove the Status commands.
          >
          > H="Delete Lines (Range)"
          > ^!Set %a%=^?{Line Start=1}
          > ^!Set %LE%=^?{Line End=2}
          > ^!StatusShow "Hello"
          > ^!Jump ^%a%
          > :loop
          > ^!DeleteLine
          > ^!Inc %a%
          > if ^%a% < ^%LE% loop else next
          > !StatusClose
          > ;end
          >
          > To delete a series of lines, I wouldn't use ^!DeleteLine. I would ^!setwordwrap off, prompt for line numbers, then select from the beginning of line 1 to the beginning of line 2 +1, and then use:
          >
          > ^!Menu Edit/Delete
          >
          > Then no need for looping.
          >
          > Regards,
          > Sheri
          >
        • Don - HtmlFixIt.com
          ;clip to delete lines ; whacked at by don@htmlfixit.com ; 4/27/2009 ; get starting and ending lines ^!Set %sl%=^?{Start of Line Range} ^!Set %el%=^?{End of
          Message 4 of 18 , Apr 27 7:27 AM
            ;clip to delete lines
            ; whacked at by don@...
            ; 4/27/2009
            ; get starting and ending lines
            ^!Set %sl%=^?{Start of Line Range}
            ^!Set %el%=^?{End of Line Range}
            ; set cursor at start of first line
            ^!SetCursor ^%sl%:1
            ;set cursor at start of line FOLLOWING deletion
            ^!SelectTo ^$Calc(^%el%+1)$:1
            ;replace with nothing -- in other words, delete
            ^!Replace "^$GetSelection$" >> "" ACIWHS

            Steve Kalynuik wrote:
            > Thank-you, your direction lead me to new ideas about the problem and I came up with this:
            >
            > H="Delete Line Range"
            > ; starting and ending lines
            > ^!Set %sl%=^?{Start of Line Range}
            > ^!Set %el%=^?{End of Line Range}
            > ; number of lines to delete
            > ^!Set %nl%= ^%el% - ^%sl% + 1
            > ;
            > ^!Jump ^%sl%
            > :Loop
            > ^!DeleteLine
            > ^!Dec ^%nl% - 1
            > ^!If %nl% = 0 End
            > ^!Goto End
            > ^!Goto Loop
            > :End
            >
            > But it still does not work, only deletes 1 line but deletes atleast deletes the line set %sl%
            >
            > Any other ideas please.
            > Steve
            >
            >> Many problems. Use wizards with curly braces not sqare brackets when you want to use the result in a variable. Use percent signs around variable names. Use a caret in front of a variable name to evaluate it (get its value). Not possible to evaluate variables that have never been set, as you've done with ^%line%.
            >>
            >> Following should work (untested). I think I'd remove the Status commands.
            >>
            >> H="Delete Lines (Range)"
            >> ^!Set %a%=^?{Line Start=1}
            >> ^!Set %LE%=^?{Line End=2}
            >> ^!StatusShow "Hello"
            >> ^!Jump ^%a%
            >> :loop
            >> ^!DeleteLine
            >> ^!Inc %a%
            >> if ^%a% < ^%LE% loop else next
            >> !StatusClose
            >> ;end
            >>
            >> To delete a series of lines, I wouldn't use ^!DeleteLine. I would ^!setwordwrap off, prompt for line numbers, then select from the beginning of line 1 to the beginning of line 2 +1, and then use:
            >>
            >> ^!Menu Edit/Delete
            >>
            >> Then no need for looping.
            >>
            >> Regards,
            >> Sheri
            >>
            >
            >
            >
            >
            > ------------------------------------
            >
            > Fookes Software: http://www.fookes.com/
            > NoteTab website: http://www.notetab.com/
            > NoteTab Discussion Lists: http://www.notetab.com/groups.php
            >
            > ***
            > Yahoo! Groups Links
            >
            >
            >
            >
          • Sheri
            ... You will find it easier to develop clips if you use ^!Setdebug on at the top so you can single step until you get it working. You still have problems with
            Message 5 of 18 , Apr 27 7:43 AM
              --- In ntb-clips@yahoogroups.com, "Steve Kalynuik" <skalynuik@...> wrote:
              >
              > Thank-you, your direction lead me to new ideas about the problem and I came up with this:
              >
              > H="Delete Line Range"
              > ; starting and ending lines
              > ^!Set %sl%=^?{Start of Line Range}
              > ^!Set %el%=^?{End of Line Range}
              > ; number of lines to delete
              > ^!Set %nl%= ^%el% - ^%sl% + 1
              > ;
              > ^!Jump ^%sl%
              > :Loop
              > ^!DeleteLine
              > ^!Dec ^%nl% - 1
              > ^!If %nl% = 0 End
              > ^!Goto End
              > ^!Goto Loop
              > :End
              >
              > But it still does not work, only deletes 1 line but deletes atleast deletes the line set %sl%
              >

              You will find it easier to develop clips if you use

              ^!Setdebug on

              at the top so you can single step until you get it working. You still have problems with when to use evaluated vs not-evaluated variables. Also you never repeat your loop. Also you need ^$Calc$ to do arithmetic.

              Try this:

              ^!Set %sl%=^?{Start of Line Range};%el%=^?{End of Line Range}
              ; number of lines to delete
              ^!Set %nl%= ^$Calc(^%el% - ^%sl% + 1)$
              ^!Jump ^%sl%
              :Loop
              ^!DeleteLine
              ^!Dec %nl%
              ^!If ^%nl% = 0 End Else Loop
              ;end of clip

              Regards,
              Sheri
            • Steve Kalynuik
              Thank-you so mush Sherri & Don Both work perfectly, but from a technical aspect which is better? H= Delete Range of Lines 01 ^!Set %sl%=^?{Start of Line
              Message 6 of 18 , Apr 27 8:19 AM
                Thank-you so mush Sherri & Don

                Both work perfectly, but from a technical aspect which is better?

                H="Delete Range of Lines 01"
                ^!Set %sl%=^?{Start of Line Range};%el%=^?{End of Line Range}
                ; number of lines to delete
                ^!Set %nl%= ^$Calc(^%el% - ^%sl% + 1)$
                ^!Jump ^%sl%
                :Loop
                ^!DeleteLine
                ^!Dec %nl%
                ^!If ^%nl% = 0 End Else Loop
                ;end of clip

                H="Delete Range of Lines 02"
                ;clip to delete lines
                ; whacked at by don@...
                ; 4/27/2009
                ; get starting and ending lines
                ^!Set %sl%=^?{Start of Line Range};^!Set %el%=^?{End of Line Range}
                ; set cursor at start of first line
                ^!SetCursor ^%sl%:1
                ;set cursor at start of line FOLLOWING deletion
                ^!SelectTo ^$Calc(^%el%+1)$:1
                ;replace with nothing -- in other words, delete
                ^!Replace "^$GetSelection$" >> "" ACIWHS
                ;end of clip

                Thank-you
                Steve
              • Steve Kalynuik
                Opps forgot the main reason for this, I am moving my website from GeoCities as they are discontinuing their service and my html webpages have 3 added groups of
                Message 7 of 18 , Apr 27 8:31 AM
                  Opps forgot the main reason for this, I am moving my website from GeoCities as they are discontinuing their service and my html webpages have 3 added groups of lines, I was able to remove the last 2 occurances in all documents but not the first 2 lines, which is what the below request was for.

                  So my question is now how do I apply either clip to all open documents, some 700 open files in all?

                  Steve
                  --- In ntb-clips@yahoogroups.com, "Steve Kalynuik" <skalynuik@...> wrote:
                  >
                  > Thank-you so mush Sherri & Don
                  >
                  > Both work perfectly, but from a technical aspect which is better?
                  >
                  > H="Delete Range of Lines 01"
                  > ^!Set %sl%=^?{Start of Line Range};%el%=^?{End of Line Range}
                  > ; number of lines to delete
                  > ^!Set %nl%= ^$Calc(^%el% - ^%sl% + 1)$
                  > ^!Jump ^%sl%
                  > :Loop
                  > ^!DeleteLine
                  > ^!Dec %nl%
                  > ^!If ^%nl% = 0 End Else Loop
                  > ;end of clip
                  >
                  > H="Delete Range of Lines 02"
                  > ;clip to delete lines
                  > ; whacked at by don@
                  > ; 4/27/2009
                  > ; get starting and ending lines
                  > ^!Set %sl%=^?{Start of Line Range};^!Set %el%=^?{End of Line Range}
                  > ; set cursor at start of first line
                  > ^!SetCursor ^%sl%:1
                  > ;set cursor at start of line FOLLOWING deletion
                  > ^!SelectTo ^$Calc(^%el%+1)$:1
                  > ;replace with nothing -- in other words, delete
                  > ^!Replace "^$GetSelection$" >> "" ACIWHS
                  > ;end of clip
                  >
                  > Thank-you
                  > Steve
                  >
                • Sheri
                  ... Why do you want to do it based on NoteTab s line number? What do the lines say? Are you saying you have 700 files loaded at once in NoteTab? I would not do
                  Message 8 of 18 , Apr 27 8:47 AM
                    --- In ntb-clips@yahoogroups.com, "Steve Kalynuik" <skalynuik@...> wrote:
                    >
                    > Opps forgot the main reason for this, I am moving my website from
                    > GeoCities as they are discontinuing their service and my html
                    > webpages have 3 added groups of lines, I was able to remove the
                    > last 2 occurances in all documents but not the first 2 lines,
                    > which is what the below request was for.
                    >
                    > So my question is now how do I apply either clip to all open
                    > documents, some 700 open files in all?

                    Why do you want to do it based on NoteTab's line number? What do the lines say?

                    Are you saying you have 700 files loaded at once in NoteTab? I would not do that. I would either use the Search Disk dialog (NoteTab standard or pro) or write a clip that opens the files one at a time, alters it and saves it. Either way I would make backups first.

                    Regards,
                    Sheri
                  • John Shotsky
                    If the lines you want to remove are recognizable by their content, you can do a global find and replace with nothing on all open documents. If the lines are
                    Message 9 of 18 , Apr 27 8:49 AM
                      If the lines you want to remove are recognizable by their content, you can do a global find and replace with 'nothing'
                      on all open documents. If the lines are not capable of being recognized, you may have to do it all manually.

                      If it is always the first two lines in each file, that is recognizable. If there are blank lines before or between them,
                      that needs to be considered, but still recognizable.

                      If there are words that appear only in those two lines, that is recognizable.

                      Can you show us what the two lines look like, and let us know if they are unique? If so, you can delete all of the lines
                      from all of the files with one ^!Replace statement.
                      John

                      From: ntb-clips@yahoogroups.com [mailto:ntb-clips@yahoogroups.com] On Behalf Of Steve Kalynuik
                      Sent: Monday, April 27, 2009 8:32 AM
                      To: ntb-clips@yahoogroups.com
                      Subject: [Clip] Re: Deleting Range of lines





                      Opps forgot the main reason for this, I am moving my website from GeoCities as they are discontinuing their service and
                      my html webpages have 3 added groups of lines, I was able to remove the last 2 occurances in all documents but not the
                      first 2 lines, which is what the below request was for.

                      So my question is now how do I apply either clip to all open documents, some 700 open files in all?

                      Steve
                      --- In ntb-clips@yahoogroups.com <mailto:ntb-clips%40yahoogroups.com> , "Steve Kalynuik" <skalynuik@...> wrote:
                      >
                      > Thank-you so mush Sherri & Don
                      >
                      > Both work perfectly, but from a technical aspect which is better?
                      >
                      > H="Delete Range of Lines 01"
                      > ^!Set %sl%=^?{Start of Line Range};%el%=^?{End of Line Range}
                      > ; number of lines to delete
                      > ^!Set %nl%= ^$Calc(^%el% - ^%sl% + 1)$
                      > ^!Jump ^%sl%
                      > :Loop
                      > ^!DeleteLine
                      > ^!Dec %nl%
                      > ^!If ^%nl% = 0 End Else Loop
                      > ;end of clip
                      >
                      > H="Delete Range of Lines 02"
                      > ;clip to delete lines
                      > ; whacked at by don@
                      > ; 4/27/2009
                      > ; get starting and ending lines
                      > ^!Set %sl%=^?{Start of Line Range};^!Set %el%=^?{End of Line Range}
                      > ; set cursor at start of first line
                      > ^!SetCursor ^%sl%:1
                      > ;set cursor at start of line FOLLOWING deletion
                      > ^!SelectTo ^$Calc(^%el%+1)$:1
                      > ;replace with nothing -- in other words, delete
                      > ^!Replace "^$GetSelection$" >> "" ACIWHS
                      > ;end of clip
                      >
                      > Thank-you
                      > Steve
                      >



                      [Non-text portions of this message have been removed]
                    • Steve Kalynuik
                      This is the 2 lines from 3 different html files ignore #): 1) var PUpage= 76001068 ; var PUprop= geocities ;
                      Message 10 of 18 , Apr 27 9:04 AM
                        This is the 2 lines from 3 different html files ignore #):

                        1)
                        <script language="JavaScript">var PUpage="76001068"; var PUprop="geocities"; </script><script language="JavaScript" src="http://www.geocities.com/js_source/pu5geo.js"></script><script language="JavaScript"> var thGetOv="http://themis.geocities.yahoo.com/themis/h.php"; var thCanURL="http://us.geocities.com/-kingtut/lyrics/song370.html"; var thSpaceId="76001068"; var thIP="173.35.117.14"; var thTs="1240761498"; var thCs="0b7a97343c3c0fb9add9a7839b2d30f4";</script><noscript><link rel="stylesheet" href="http://themis.geocities.yahoo.com/jsoff.css?thIP=173.35.117.14&thTs=1240761498"></noscript><script language="JavaScript" src="http://us.geocities.com/js_source/geovck08.js"></script>
                        <!-- text above generated by server. PLEASE REMOVE -->

                        2)
                        <script language="JavaScript">var PUpage="76001068"; var PUprop="geocities"; </script><script language="JavaScript" src="http://www.geocities.com/js_source/pu5geo.js"></script><script language="JavaScript"> var thGetOv="http://themis.geocities.yahoo.com/themis/h.php"; var thCanURL="http://us.geocities.com/-kingtut/lyrics/song376.html"; var thSpaceId="76001068"; var thIP="173.35.117.14"; var thTs="1240761498"; var thCs="2a7c807170bc7719069d2ee982b851b4";</script><noscript><link rel="stylesheet" href="http://themis.geocities.yahoo.com/jsoff.css?thIP=173.35.117.14&thTs=1240761498"></noscript><script language="JavaScript" src="http://us.geocities.com/js_source/geovck08.js"></script>
                        <!-- text above generated by server. PLEASE REMOVE -->

                        3)
                        <script language="JavaScript">var PUpage="76001068"; var PUprop="geocities"; </script><script language="JavaScript" src="http://www.geocities.com/js_source/pu5geo.js"></script><script language="JavaScript"> var thGetOv="http://themis.geocities.yahoo.com/themis/h.php"; var thCanURL="http://us.geocities.com/-kingtut/lyrics/song377.html"; var thSpaceId="76001068"; var thIP="173.35.117.14"; var thTs="1240761500"; var thCs="e412764e5d875f3e1fc2c2c16e777694";</script><noscript><link rel="stylesheet" href="http://themis.geocities.yahoo.com/jsoff.css?thIP=173.35.117.14&thTs=1240761500"></noscript><script language="JavaScript" src="http://us.geocities.com/js_source/geovck08.js"></script>
                        <!-- text above generated by server. PLEASE REMOVE -->

                        I tried to do this by regular expression search but could not do a regular search & replace for these instances. But they are the first 2 lines of all files from GeoCities. (I am using files from GeoCities as my original files from my cpu were lost due to a HD crash so can only use the files from GeoCities to move to another site.)

                        BTW just for the curious the other reoccuring instances GeoCities adds are:

                        But this is exactly the same in all documents)

                        <!-- following code added by server. PLEASE REMOVE -->
                        <link href="http://us.geocities.com/js_source/div.css" rel="stylesheet" type="text/css"><script language="JavaScript" src="http://us.geocities.com/js_source/div03.js"></script>
                        <!-- preceding code added by server. PLEASE REMOVE -->

                        An this but I could do a Global Regular Expression Search & Replace on the following (Its weird how I could do a regexp s&r on the following but not the first 2 lines of code):

                        <!-- text below generated by server. PLEASE REMOVE --></object></layer></div></span></style></noscript></table></script></applet><script language="JavaScript" src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script language="JavaScript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/smb/js/hosting/cp/js_source/geov2_001.js"></script><script language="javascript">geovisit();</script><noscript><img src="http://visit.geocities.yahoo.com/visit.gif?us1240848020" alt="setstats" border="0" width="1" height="1"></noscript>
                        <IMG SRC="http://geo.yahoo.com/serv?s=76001068&t=1240848020&f=us-w4" ALT=1 WIDTH=1 HEIGHT=1>

                        Anyways Thanks for all help so far and thanx for help to come.
                        Steve
                      • Don - HtmlFixIt.com
                        Yep, I would use search and replace. Use regex.
                        Message 11 of 18 , Apr 27 9:32 AM
                          Yep, I would use search and replace. Use regex.

                          Sheri wrote:
                          > --- In ntb-clips@yahoogroups.com, "Steve Kalynuik" <skalynuik@...> wrote:
                          >> Opps forgot the main reason for this, I am moving my website from
                          >> GeoCities as they are discontinuing their service and my html
                          >> webpages have 3 added groups of lines, I was able to remove the
                          >> last 2 occurances in all documents but not the first 2 lines,
                          >> which is what the below request was for.
                          >>
                          >> So my question is now how do I apply either clip to all open
                          >> documents, some 700 open files in all?
                          >
                          > Why do you want to do it based on NoteTab's line number? What do the lines say?
                          >
                          > Are you saying you have 700 files loaded at once in NoteTab? I would not do that. I would either use the Search Disk dialog (NoteTab standard or pro) or write a clip that opens the files one at a time, alters it and saves it. Either way I would make backups first.
                          >
                          > Regards,
                          > Sheri
                        • Sheri
                          You can try this, I would suggest to try it first with just a few of the files in a directory. I ve assumed their extension is htm? ^!Continue Removes lines
                          Message 12 of 18 , Apr 27 3:07 PM
                            You can try this, I would suggest to try it first with just a few of the
                            files in a directory. I've assumed their extension is htm?

                            ^!Continue Removes lines from htm documents. You should have backups!
                            ^!Setscreenupdate off
                            ^!StatusShow Modifying Files ...
                            ^!Set %Folder%="^?{(T=D)Browse to HTM Folder==^%Folder%}"
                            ^!SetArray %Files%=^$GetFiles("^%Folder%";*.htm;;NAME)$
                            ^!Set %nFiles%=^%Files0%
                            ^!IfEmpty ^%nFiles% Next Else Skip
                            ^!Set %nFiles%=0
                            ^!Set %count%=0
                            :Loop
                            ^!Inc %count%
                            ^!If ^%count%>^%Files0% Out
                            ^!Open ^%Files^%count%%
                            ^!Jump Doc_Start
                            ^!Replace "\A.+\R.+REMOVE -->\R" >> "" RS
                            ^!IfFalse ^$IsModified$ Next Else Skip_2
                            ^!Close Discard
                            ^!Goto Loop
                            ^!Close Save
                            ^!Goto Loop
                            :Out
                            ^!StatusClose
                            ^!Prompt ^%nFiles% Processed
                            ^!Set %Files%=""
                            ^!ClearVariable %count%
                            ^!ClearVariable %Files%
                            ^!ClearVariable %Folder%
                            ^!ClearVariable %nFiles%
                            ;end of clip
                          • Steve Kalynuik
                            In a simple word, !!!WOW!!! I am looking at the code and looking at the results and can only say, How or Why did this work, not only that but on a backup
                            Message 13 of 18 , Apr 27 3:21 PM
                              In a simple word, !!!WOW!!!

                              I am looking at the code and looking at the results and can only say, How or Why did this work, not only that but on a backup directory it did not touch files that I already corrected.

                              I can not make heads or tales as to why this worked so well and why was it not touching files I already removed the lines from.

                              Thank-you
                              Steve
                              --- In ntb-clips@yahoogroups.com, Sheri <silvermoonwoman@...> wrote:
                              >
                              > You can try this, I would suggest to try it first with just a few of the
                              > files in a directory. I've assumed their extension is htm?
                              >
                              > ^!Continue Removes lines from htm documents. You should have backups!
                              > ^!Setscreenupdate off
                              > ^!StatusShow Modifying Files ...
                              > ^!Set %Folder%="^?{(T=D)Browse to HTM Folder==^%Folder%}"
                              > ^!SetArray %Files%=^$GetFiles("^%Folder%";*.htm;;NAME)$
                              > ^!Set %nFiles%=^%Files0%
                              > ^!IfEmpty ^%nFiles% Next Else Skip
                              > ^!Set %nFiles%=0
                              > ^!Set %count%=0
                              > :Loop
                              > ^!Inc %count%
                              > ^!If ^%count%>^%Files0% Out
                              > ^!Open ^%Files^%count%%
                              > ^!Jump Doc_Start
                              > ^!Replace "\A.+\R.+REMOVE -->\R" >> "" RS
                              > ^!IfFalse ^$IsModified$ Next Else Skip_2
                              > ^!Close Discard
                              > ^!Goto Loop
                              > ^!Close Save
                              > ^!Goto Loop
                              > :Out
                              > ^!StatusClose
                              > ^!Prompt ^%nFiles% Processed
                              > ^!Set %Files%=""
                              > ^!ClearVariable %count%
                              > ^!ClearVariable %Files%
                              > ^!ClearVariable %Folder%
                              > ^!ClearVariable %nFiles%
                              > ;end of clip
                              >
                            • Don - HtmlFixIt.com
                              Well it works because Sheri did it and she Wonder Silver Woman or something like that :-) Pretty smart lady. ^!Replace A.+ R.+REMOVE -- R RS
                              Message 14 of 18 , Apr 27 3:50 PM
                                Well it works because Sheri did it and she Wonder Silver Woman or
                                something like that :-) Pretty smart lady.

                                ^!Replace "\A.+\R.+REMOVE -->\R" >> "" RS
                                ^!IfFalse ^$IsModified$ Next Else Skip_2

                                That is the guts and not one I have seen before. The second line that
                                is ... IsModified ... that's a WOW alright.

                                The first line is the replace command that replaces your old text with
                                nothing ... then if it actually replaced something the IsModified test
                                does one thing and if not modified, you go to the next file ... having
                                not touched the one you already changed.

                                Brilliant move Sheri.

                                So buy pro if you don't have it to support this great software or donate
                                extra in church to thank God for Sheri :-) since she never takes
                                donations when I have tried ... even though something like this save
                                hours and hours off of my on-line time.


                                Steve Kalynuik wrote:
                                > In a simple word, !!!WOW!!!
                                >
                                > I am looking at the code and looking at the results and can only say, How or Why did this work, not only that but on a backup directory it did not touch files that I already corrected.
                                >
                                > I can not make heads or tales as to why this worked so well and why was it not touching files I already removed the lines from.
                                >
                                > Thank-you
                                > Steve
                              • Steve Kalynuik
                                All hail to Sheri, was a fantastic job, saved hours of load, delete first 2 lines, save, next file, x500 files :( Thanx to all the help I have received here my
                                Message 15 of 18 , Apr 27 5:37 PM
                                  All hail to Sheri, was a fantastic job, saved hours of load, delete first 2 lines, save, next file, x500 files :(

                                  Thanx to all the help I have received here my website is now moved, in its entirety.

                                  I have used NoteTab Std and Pro for some years now, and was a contributing clipbooker too, but my time was spent elsewhere for a couple years and the clipbook programming has expanded greatly, I hope I can get back into it.

                                  I could not do what I have been able to without the help of others here over the past and into the future, and its all because of Eric Fookes for creating this wonderful program, and in the past legends like Jody Adair (Bless you Jody, I miss you, may you shine and inspire our lives), and now folks like Sheri and others.

                                  Thank-You
                                  Steve Kalynuik (Kingtut)
                                • Sheri
                                  Glad it worked ok :) Regards, Sheri (BTW, no recent messages from this group have reached my email, while I have gotten some from other groups and am not in
                                  Message 16 of 18 , Apr 28 5:07 AM
                                    Glad it worked ok :)

                                    Regards,
                                    Sheri

                                    (BTW, no recent messages from this group have reached my email, while I have gotten some from other groups and am not in bounce status)
                                  • Steve Kalynuik
                                    Concerning email notification, I can only say during this current question and answer period I have received all email notification from my first question to
                                    Message 17 of 18 , Apr 28 5:40 AM
                                      Concerning email notification, I can only say during this current question and answer period I have received all email notification from my first question to Sheri's last response for this group, so atleast I was sparred email lag.

                                      Thanx again Sheri.

                                      Steve
                                      --- In ntb-clips@yahoogroups.com, "Sheri" <silvermoonwoman@...> wrote:
                                      >
                                      > Glad it worked ok :)
                                      >
                                      > Regards,
                                      > Sheri
                                      >
                                      > (BTW, no recent messages from this group have reached my email, while I have gotten some from other groups and am not in bounce status)
                                      >
                                    • Sheri
                                      Today I received both my previous message and your reply, I guess yesterday s messages are lost in space lol. And though I received the two recent messages
                                      Message 18 of 18 , Apr 28 6:03 AM
                                        Today I received both my previous message and your reply, I guess yesterday's messages are "lost in space" lol. And though I received the two recent messages from this group, this morning I am missing messages from other groups. I have seen that Yahoo groups was recently "working on" message delays and delivery, but those problems are now supposedly solved. Oh well.

                                        Regards,
                                        Sheri
                                      Your message has been successfully submitted and would be delivered to recipients shortly.