I found that I needed to do like 100 at a time and it wasn't going to cut itto 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 tyep "mkdir bin"2. the in the bin directory create a file called 'fle' with your favoriteeditor and then put in this one line: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're using and open a new one. For some reason whencreating new shell scripts this has to be done before 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.So, if you install this script, I'm thinking fle *.tpl will work.You might also consider BBEdit (and/or Applescript if you need to getfancy)? BBEdit can do multi-file search and replace pretty easily. Add insome Applescript and you're able to do almost anything.Billon 10/3/03 4:40 PM, Clint Davis at cdavis@grayloon.com wrote:> Since I just moved from MacOS 9 to MacOS X, all my sendmail contexts are> BROKEN! The incorrect line endings are causing everything to run together.> > I have about 50 websites, and I don't know where I've hidden all the> sendmail stuff. Is there a way I can change the line endings on ALL my tpl> files via the command line?> > ---------------------------------------------------------------------> Clint Davis> Webmaster / Interactive Media Specialist> Gray Loon Marketing Group, Inc. http://www.grayloon.com> 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999> ---------------------------------------------------------------------> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
I found that I needed to do like 100 at a time and it wasn't going to cut itto 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 tyep "mkdir bin"2. the in the bin directory create a file called 'fle' with your favoriteeditor and then put in this one line: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're using and open a new one. For some reason whencreating new shell scripts this has to be done before 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.So, if you install this script, I'm thinking fle *.tpl will work.You might also consider BBEdit (and/or Applescript if you need to getfancy)? BBEdit can do multi-file search and replace pretty easily. Add insome Applescript and you're able to do almost anything.Billon 10/3/03 4:40 PM, Clint Davis at cdavis@grayloon.com wrote:> Since I just moved from MacOS 9 to MacOS X, all my sendmail contexts are> BROKEN! The incorrect line endings are causing everything to run together.> > I have about 50 websites, and I don't know where I've hidden all the> sendmail stuff. Is there a way I can change the line endings on ALL my tpl> files via the command line?> > ---------------------------------------------------------------------> Clint Davis> Webmaster / Interactive Media Specialist> Gray Loon Marketing Group, Inc. http://www.grayloon.com> 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999> ---------------------------------------------------------------------> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
DOWNLOAD WEBDNA NOW!
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...