Re: Some basic unix commanding, more please:

2000-07-17 Thread Matthew Dalton
(entering this thread rather late... but still responding to the original message!) virtanen wrote: > > On Wed, 12 Jul 2000, Matthew Dalton wrote: > > Try: > > > > $ for file in *.doc; do mswordview $file > ${file%.doc}.html; done I certainly did... You've got some good answers already, so I wo

RE: Some basic unix commanding, more please:

2000-07-17 Thread virtanen
On Fri, 14 Jul 2000, Jaldhar H. Vyas wrote: > Sarcasm? Hardly. I came to perl via Sanskrit. The way perl compresses > such a lot of information makes a lot of sense to someone who has studied, > say, the Vyakarana sutras. > > -- > Jaldhar H. Vyas <[EMAIL PROTECTED]> Interesting. I've studi

Re: Some basic unix commanding, more please:

2000-07-15 Thread Eric G . Miller
On Sat, Jul 15, 2000 at 01:51:28AM +0200, Frodo Baggins wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jaldhar H. Vyas scripsit: > >Sarcasm? Hardly. I came to perl via Sanskrit. The way perl compresses > >such a lot of information makes a lot of sense to someone who has studied, >

RE: Some basic unix commanding, more please:

2000-07-14 Thread Frodo Baggins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jaldhar H. Vyas scripsit: >Sarcasm? Hardly. I came to perl via Sanskrit. The way perl compresses >such a lot of information makes a lot of sense to someone who has studied, >say, the Vyakarana sutras. Well, let me say that this will be saved in my

RE: Some basic unix commanding, more please:

2000-07-14 Thread Jaldhar H. Vyas
On Fri, 14 Jul 2000, Frodo Baggins wrote: > > Well, > I can see sarcasm when it bytes my nose:))) Nevertheles... Perl is > beautiful:) Sarcasm? Hardly. I came to perl via Sanskrit. The way perl compresses such a lot of information makes a lot of sense to someone who has studied, say, the Vy

Re: Some basic unix commanding, more please:

2000-07-14 Thread virtanen
On Fri, 14 Jul 2000, brian moore wrote: > On Fri, Jul 14, 2000 at 07:48:35PM +0300, virtanen wrote: > > On Fri, 14 Jul 2000, Frodo Baggins wrote: > > > virtanen scripsit: > > > > > > > > > > > >*** > > > >rename 'y/A-Z/a-z/;s/\.htm$/.html/g' *.HTM > > > >***

RE: Some basic unix commanding, more please:

2000-07-14 Thread Frodo Baggins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 virtanen scripsit: > >I'm deadly serious, not sarcastic. (Everything what I said is true. And I >really liked the looks of that command.) > >But You probably know, where to get that script? >There are so many perl packages, that I don't want to instal

Re: Some basic unix commanding, more please:

2000-07-14 Thread brian moore
On Fri, Jul 14, 2000 at 07:48:35PM +0300, virtanen wrote: > On Fri, 14 Jul 2000, Frodo Baggins wrote: > > virtanen scripsit: > > > > > >This: > > > > > >*** > > >rename 'y/A-Z/a-z/;s/\.htm$/.html/g' *.HTM > > >*** > >

RE: Some basic unix commanding, more please:

2000-07-14 Thread virtanen
On Fri, 14 Jul 2000, Frodo Baggins wrote: > virtanen scripsit: > > > >This: > > > >*** > >rename 'y/A-Z/a-z/;s/\.htm$/.html/g' *.HTM > >*** > > > >looks very very > >BEAUTIFUL > >to my eyes! > Well, > I can see sa

RE: Some basic unix commanding, more please:

2000-07-14 Thread Frodo Baggins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 virtanen scripsit: > >This: > >*** >rename 'y/A-Z/a-z/;s/\.htm$/.html/g' *.HTM >*** > >looks very very >BEATIFUL >to my eyes! > >(I'm an old matchematician, besides that

RE: Some basic unix commanding, more please:

2000-07-14 Thread virtanen
On Fri, 14 Jul 2000, Frodo Baggins wrote: __ > In debian dist there is a perl scrip called > rename, which allows you to transform your filenames as you > please:). For instance, to transform ONE.HTM, TWO.HTM, THREE.HTM into > one.html, two.html, three.html

RE: Some basic unix commanding, more please:

2000-07-14 Thread Frodo Baggins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, as perl people says, there is more than one way to do it, but perl way is the right one:) In debian dist there is a perl scrip called rename, which allows you to transform your filenames as you please:). For instance, to transform ONE.HTM, TWO.HT

Re: Some basic unix commanding, more please:

2000-07-14 Thread virtanen
On Fri, 14 Jul 2000, Peter S Galbraith wrote: > To lowercase the names: > > $ for file in *HTM; do mv $file `echo $file | tr A-Z a-z`; done > > then you can change the extension from .htm to .html > > The trick aboave was embedding a shell command within `backtics`. > It get executed before th

Re: Some basic unix commanding, more please:

2000-07-14 Thread Peter S Galbraith
virtanen wrote: > I managed to make a command, which changes some extensions (coming from > bad copying from dos) like .JPG into .jpg by doing: > > for file in *.JPG; do cp $file ${file%.JPG}.jpg; done > > 2) But when I have got files like this > > NODE23.HTM > > How can I make the names i

RE: Some basic unix commanding, more please:

2000-07-14 Thread Michalowski Thierry
Title: RE: Some basic unix commanding, more please: One-liner example: for file in * ; do lcfile=`echo $file|tr [A-Z] [a-z]`; echo $file will be $lcfile;done Of course, use $file and $lcfile as you would like to, with mv $file $lcfile if you dare to HTH Thierry -Message d'or