If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
looking for utility to convert text files from Mac (& Unix) in abatch process
I'm looking for something similar to this program called "flip" that
will convert the "newline" character in text files, only one that will allow me to use wildcards to convert a bunch of text files in a batch process. I've spent time searching, and found a bunch of Linux commands to do it, but I'm not using Linux. Could somebody point me to a utility that can do the job? It shouldn't be too hard, I used to have a program called "ASCII Helper" on my old Apple IIGS that could do this, why can't I find anything for Windows? |
#2
|
|||
|
|||
looking for utility to convert text files from Mac (& Unix) ina batch process
On 05/05/2011 10:47 PM, SlickRCBD wrote:
I'm looking for something similar to this program called "flip" that will convert the "newline" character in text files, only one that will allow me to use wildcards to convert a bunch of text files in a batch process. I've spent time searching, and found a bunch of Linux commands to do it, but I'm not using Linux. Could somebody point me to a utility that can do the job? It shouldn't be too hard, I used to have a program called "ASCII Helper" on my old Apple IIGS that could do this, why can't I find anything for Windows? http://www.cyberciti.biz/faq/unix-co...s-for-windows/ |
#3
|
|||
|
|||
looking for utility to convert text files from Mac (& Unix) in a batch process
|
#4
|
|||
|
|||
looking for utility to convert text files from Mac (& Unix) in a batch process
Btw, Lua, like UNIX, is case sensitive throughout. It's character matching
and replace methods are second to none, except perhaps Perl's (which I never learned because Lua is much easier to read and write), so wildcarding filenames and converting substrings is easy. I use this to convert Mac newlines to Windows newlines in emails so they work properly (email needs windows types, hex 0D 0A, both linefeed AND carriage return, which makes sense if you think about it..) X=string.gsub(X,"(.)\n",function(S) if S=="\r" then S="" else Y=Y+1 end return S.."\r\n" end) (Beware wordwrap). More correctly, that function might better be built once, outside the string.sub function, and called repeatedly from inside, if you're using this on really big tasks, but it works ok for a 12MB text file as it is so I let it pass. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dos commands for text files | [email protected] | General | 3 | August 30th 06 11:37 AM |
Map Unix | rob p | Networking | 6 | April 29th 06 09:27 PM |
.crwl files and how do I stop the process that creates them | mgm | General | 2 | April 29th 06 12:18 PM |
text files | Steve2ae | General | 3 | December 17th 05 08:58 PM |
There is no viewer capable of viewing Text Document files. | Raymond | General | 5 | June 24th 04 05:12 PM |