I find myself writing these often. Do you do this too?
For example, I wrote a text file reformatter, as I often need to paste text into a mainframe application that can only handle lines up 72 characters wide. It accepts as input any text file, and add a CRLF after whichever word is the last to fit on a line.
And yesterday, I wrote a horizontal editor of sorts, where I add a new line at the top of a text file and add in (what I call) margin characters. It allows me to extract a vertical section of data from the file based on the left and right margin characters. Or, if only one margin character is supplied, that makes it the rightmost column and all lines get truncated to that length.
Both are pretty trivial. I made them to to sit on my desktop and I just drop a file on them to use them. The newly formatted data is presented in Notepad where I copy and paste the data into other applications where I need the data.



LinkBack URL
About LinkBacks





I've been known to spend an hour trying to get a regex to do what I want...