Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Upper case



Hello all,

It shouldnt bother you, guys, to recieve some too simple questions from time to time hen? :)

I tried the solution :

for i in *.ps; do
mv  $i ${${(C)i}:s/ch/chap/}
done

I had these .ps files :

evol.ch2.37p.ps evol.ch3.54p.ps evol.intro.3p.ps  evol.ch1.13p.ps

my zsh command changed them to :

Evol.Evol.Ch3.54p.Ps  Ch1.13p.Ps Evol.Ch2.37p.Ps Evol.Intro.3p.Ps

I am using ZSH_VERSION=3.1.2 on solaris 7.

Yes, sorry, didnt read in man page on this, just hoped to learn this one w/o any efforts :)

Thanx.
Mohamed.




Messages sorted by: Reverse Date, Date, Thread, Author