(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
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
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,
>
-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
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
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
> > > >***
-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
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
> > >***
> >
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
-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
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
-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
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
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
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
15 matches
Mail list logo