Re: Bulk Linebreak Changes
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 41529
interpreted = N
texte = Jesse,found this on MAc OSX hints a few months ago when I needed the same thing ..I found that I needed to do like 100 at a time and it wasn't going to cutit to pass one file at a time.This is what I did:1. if you don't have a bin directory in your home directory make one go tothe terminal and tyepmkdir bin2. the in the bin directory create a file called 'fle' with your favoriteeditor and then put in this oneline:for T in `ls -a $*`; do perl -pi -e 's/rn?/n/g' $T; doneI chose T for no particular reason.3. Save he file and in the terminal type: chmod 755 fle while in the bindirectory.4. If you want to use it right away, you need to first close whateverterminal window you'reusing and open a new one. For some reason when creating new shell scriptsthis has to be donebefore you can execute them.That's it. Now when you want to do a whole directory you can do:fle * (or simply fle by itself)or specify file-names: fle *.php or fle myfile.txtit will work with one or mulitple files.Best part is you can set the permissions and run it from WebCat ..HTH, Alain> Is there an easy way to do a bulk linebreak change from Mac to Unix? I> can't FTP the files. I've found a perl script to do it but it does> files one at a time and I need about 10000 files done...>> -->> Jesse Williams-Proudman || CEO> NineWire Digital Solutions || +1.888.873.6199> jesse@ninewire.com || http://ninewire.com> Mac Web Hosting & Colocation || Mac Nationwide Dialup>> $75 Xserve Colocation Special from Your Mac ISP!>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is> at: http://search.smithmicro.com/-- Alain RussellBlackpepper Interactivealain.russell@blackpepper.co.nzph. 09 520 6280-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Jesse,found this on MAc OSX hints a few months ago when I needed the same thing ..I found that I needed to do like 100 at a time and it wasn't going to cutit to pass one file at a time.This is what I did:1. if you don't have a bin directory in your home directory make one go tothe terminal and tyepmkdir bin2. the in the bin directory create a file called 'fle' with your favoriteeditor and then put in this oneline:for T in `ls -a $*`; do perl -pi -e 's/rn?/n/g' $T; doneI chose T for no particular reason.3. Save he file and in the terminal type: chmod 755 fle while in the bindirectory.4. If you want to use it right away, you need to first close whateverterminal window you'reusing and open a new one. For some reason when creating new shell scriptsthis has to be donebefore you can execute them.That's it. Now when you want to do a whole directory you can do:fle * (or simply fle by itself)or specify file-names: fle *.php or fle myfile.txtit will work with one or mulitple files.Best part is you can set the permissions and run it from WebCat ..HTH, Alain> Is there an easy way to do a bulk linebreak change from Mac to Unix? I> can't FTP the files. I've found a perl script to do it but it does> files one at a time and I need about 10000 files done...>> -->> Jesse Williams-Proudman || CEO> NineWire Digital Solutions || +1.888.873.6199> jesse@ninewire.com || http://ninewire.com> Mac Web Hosting & Colocation || Mac Nationwide Dialup>> $75 Xserve Colocation Special from Your Mac ISP!>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> Web Archive of this list is> at: http://search.smithmicro.com/-- Alain RussellBlackpepper Interactivealain.russell@blackpepper.co.nzph. 09 520 6280-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Alain Russell
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
help needed: Non-english characters in WebCatalog (1997)
Running a store on BOTH http and https (1998)
[OT] Imagemagick (2003)
WebCat2b12--[searchstring] bug (1997)
[ShowNext] (1997)
Credit Card not accepted (1998)
multiple databases (1997)
[OT] - Credit card processing company fees (2004)
Multi-processor Mac info ... (1997)
Showif, Search and text ? (2003)
quit command on NT (1997)
[math] are you there? (1999)
Don'y know if this is a sily question... (2003)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Format 1.15 to 1:15:00 or 01:15:00 (2002)
Code to convert relative to absolute URLs in HTML files (2004)
WC2b12: Yes, Formulas.db is for real (1997)
Not really WebCat - need HTML Grider (1997)
Mail Lists (1998)
[OT] Google Cash (2004)