Re: [OT] Command line - OSX
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61656
interpreted = N
texte = OS X can't batch rename w/ a built-in command in the CLI. The following will rename all files in a directory from .html to .tpl and is easily adaptable to anything else:ls *.html | awk '{print("mv "$1" "$1)}' | sed 's/.html/.tpl/2' | /bin/shI modified line from http://www.macosxhints.com/article.php?story=20010509130450691 . If you're in a GUI mood, R-Name does a good job: http://www2.mitsuya.nuem.nagoya-u.ac.jp/~tagaya/mte/archives/ my_software/rname/index.htmlhth,Andy"Enjoy every sandwich. I wish I would have enjoyed every sandwich."--Warren ZevonOn Apr 4, 2005, at 7:50 PM, Vijay-Kumar Solanki wrote:> Hi Alain,>> mv foo bar>> will change the file called foo to bar, just be sure to cd to the > correct location of the file. I do not think that this would be > recursive. So you may need to do it one file at a time/>> HTH - Vijay>> On Apr 4, 2005, at 6:19 PM, Alain Russell wrote:>>> Hi ..>>>> Wondering if I can get some command line help ..>> I have a lot of files that need to be renamed from 'filename' to >> 'filenameXXX'>>>> Running OSX .. how do I do this on the command line ?>>>> Thanks>> Alain>>>> -->> Alain Russell>> Blackpepper>> p. +64 9 520 6280 | m. +64 21 446 169>> http://www.blackpepper.co.nz-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
OS X can't batch rename w/ a built-in command in the CLI. The following will rename all files in a directory from .html to .tpl and is easily adaptable to anything else:ls *.html | awk '{print("mv "$1" "$1)}' | sed 's/.html/.tpl/2' | /bin/shI modified line from http://www.macosxhints.com/article.php?story=20010509130450691 . If you're in a GUI mood, R-Name does a good job: http://www2.mitsuya.nuem.nagoya-u.ac.jp/~tagaya/mte/archives/ my_software/rname/index.htmlhth,Andy"Enjoy every sandwich. I wish I would have enjoyed every sandwich."--Warren ZevonOn Apr 4, 2005, at 7:50 PM, Vijay-Kumar Solanki wrote:> Hi Alain,>> mv foo bar>> will change the file called foo to bar, just be sure to cd to the > correct location of the file. I do not think that this would be > recursive. So you may need to do it one file at a time/>> HTH - Vijay>> On Apr 4, 2005, at 6:19 PM, Alain Russell wrote:>>> Hi ..>>>> Wondering if I can get some command line help ..>> I have a lot of files that need to be renamed from 'filename' to >> 'filenameXXX'>>>> Running OSX .. how do I do this on the command line ?>>>> Thanks>> Alain>>>> -->> Alain Russell>> Blackpepper>> p. +64 9 520 6280 | m. +64 21 446 169>> http://www.blackpepper.co.nz-------------------------------------------------------------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://webdna.smithmicro.com/
Andy Mowrey
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:
RE: Fishing: anyone on this group willing to do support? (1998)
Formulas.db + Users.db (1997)
Need relative path explanation (1997)
WebTen? (1997)
Signal Raised Error (1997)
Major bug report on rootbeer (1997)
Shopping cart not being assigned (1999)
Issue with plug-in Webcat, webstar 4.x, SSL and IE when using the backbuttom (2000)
Webcat serving error page? (2000)
can WC render sites out? (1997)
Process SSI and WebCatalog.acgi (1998)
Format of Required fields error message (1997)
WebCatalog Upgrade Pricing? (1997)
[sendmail] problem getting silly now =\ (2000)
MacAuthorize hub, no modal password dialog? (1997)
I'm tired of all this! (2000)
Problem when Inputing text (1999)
Multiple Pulldowns (1997)
[taxRate] [TaxTotal] ? (1997)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)