Using a double semi-colon to initiate a comment provokes odd behavior - ntb copies the commented out line & pastes it into the focussed text. Sezor...
22015
Eb
ebbtidalflats
Aug 22, 2011 6:44 pm
End and Start refer to the LINE and COL where the END and START of the selection is located. If you add the following line of code just ABOVE the Goto END of...
22016
flo.gehrke
Aug 22, 2011 7:30 pm
... "If you come across a situation when a line in a Clip should start with a semicolon and it is not a comment, just add an extra semicolon in front of it...
22017
John Shotsky
shotsky1
Aug 25, 2011 6:27 pm
I'm looking for a standard way to add the contents of a file (file2) to the ends of the matching lines of another file. (file1) Both files have the same number...
22018
Don
dpasseng
Aug 25, 2011 8:03 pm
Can you make up a quick example? There is of course an append command....
22019
John Shotsky
shotsky1
Aug 25, 2011 8:54 pm
File1: 1. some text but there might be more 2. some more text. and there might be more File2: 1. 80 2. 90 Result wanted: File1: 1. some text but there might be...
22020
Art Kocsis
artkns
Aug 26, 2011 1:45 am
John, Your original question was quite clear in what you wanted. The process is quite simple and short: Set the delimiter to ^P Input each file into separate...
22021
loro
yastupidhoo
Aug 27, 2011 2:25 pm
... I'd use the Modify Block tools. You just need to see to that the lines in the document you want to paste the content of the other one into have the same...
22022
Sezor
piprake
Aug 27, 2011 3:09 pm
Thanks for that Eb - I think we're in agreement. Sezor...
22023
John Shotsky
shotsky1
Aug 27, 2011 4:00 pm
I want this to be a completely automatic process with no manual intervention. It is just one bit in a long string of clips. As in my example, I'm just adding...
22024
Art Kocsis
artkns
Aug 27, 2011 8:32 pm
I posted the specific method and code that you want two days ago! http://tech.groups.yahoo.com/group/ntb-clips/message/22020 Art...
22025
flo.gehrke
Aug 27, 2011 8:56 pm
... John, If the two files should be combined 'line by line' like... file1 line #1 + file2 line #1 file1 line #2 + file2 line #2 etc... I think this is...
22026
John Shotsky
shotsky1
Aug 27, 2011 9:06 pm
Thank you, Flo and Art! I'm on another task right now, but will get back to this in a day or two. Regards, John From: ntb-clips@yahoogroups.com...
22027
Ian NTnerd
indiamcq
Aug 29, 2011 10:51 am
John, If the files are large you may want to look at "join" a command line tool from GnuWin32 CoreUtils. It does what you want. I'd construce the command line...
22028
mrstanup
Aug 29, 2011 3:55 pm
I have many person clipbooks for each of the programming languages I use for development. For the last few months I've been noticing that it looks like there...
22029
Alex Plantema
aplantema
Aug 29, 2011 10:25 pm
... Toggling word wrap sometimes inserts empty lines, though it isn't related with using clips. Alex....
22030
Don
dpasseng
Sep 3, 2011 2:46 pm
Suddenly not working ... thought it did. File has 1300 lines, is there a file size max on this working? ^!Set %DataTested%=^?{RegEx Term to Search For, Pipe...
22031
John Shotsky
shotsky1
Sep 3, 2011 2:55 pm
There is no file size limitation. but what are you trying to do? If it's what I think, I'd probably just use a replace to tag the beginnings of lines with a...
22032
Don
dpasseng
Sep 3, 2011 5:13 pm
this works fine on 500 and 1000 lines but not on 1500 lines it removes all lines not containing something which can be alternate words (since it's regex) so...
22033
John Shotsky
shotsky1
Sep 3, 2011 5:45 pm
I have a 900K regex library, and I run it on 100,000 line files with no such limitations. I suspect there is something else going on – computer memory, swap...
22034
Axel Berger
absalom_nemini
Sep 3, 2011 7:35 pm
... Don saves all his lines in an array. 1300 lines at, say, 60 characters makes 78000 bytes. This smells like a 64 kB array limit. Axel...
22035
flo.gehrke
Sep 3, 2011 10:44 pm
... Don, For me, your clip works fine. But occasionally we've experienced that ^$GetDocMatchAll$ gets into trouble with the '$' sign. In this case, you better...
22036
flo.gehrke
Sep 4, 2011 11:45 am
... John, Complicated, isn't it?. Why don't you write... ^!Set %Del%=^?{Remove lines not containing:} ^!Replace "^(?!.*(?:^%Del%)\b).*(\R|\Z)" >> "" WARS Watch...
22037
Don
dpasseng
Sep 4, 2011 3:19 pm
I want to work on one column of data on each line. The example I am working on today looks like this: 1 Tom Van Gogh Brother Rice 184 16:09.2 5:13/M 2 John...
22038
Axel Berger
absalom_nemini
Sep 4, 2011 3:32 pm
... Easy: ^!Find "^([^92;t]*\t){2}([^92;t]+)92;t RASTI2 After that the find is highlighted. You can work on ^$GetSelection$ and write the result with ^!InsertText....
22039
Don
dpasseng
Sep 4, 2011 3:42 pm
... Sorry insufficient info on my part, it could be any column, not always three. I think there is a way to get things in column x but I'm drawing a blank....
22040
c.brito78
Sep 4, 2011 3:49 pm
Hi friends, How to use regex to delete all lines with the word "kkk"? Thanks!...
22041
Don
dpasseng
Sep 4, 2011 3:52 pm
That would be my clip of yesterday. Or try this: ^!Replace ".*?kkk.*\r92;n" >> "" RAWS However that would take kkk out of the middle of a word as well....
22042
Don
dpasseng
Sep 4, 2011 3:56 pm
... I'm thinking it is GetField I was looking for. I rediscovered the clip NoteTab Googler (awesome clip that searches the past messages) and also came across...
22043
Axel Berger
absalom_nemini
Sep 4, 2011 4:12 pm
... Yes. This one was so simple to make from scratch, I never thought of looking for a ready-made function, but as it's there, we might as well use it. ... ...