zsh-workers
 help / color / mirror / code / Atom feed
* shell script(using csh)
@ 2000-03-22 11:15 ayo jegede
  0 siblings, 0 replies; only message in thread
From: ayo jegede @ 2000-03-22 11:15 UTC (permalink / raw)
  To: Zsh-workers


hello 

i have been reading the book "teach yourself unix in
24hr" it real top book on my list.

i am just have a problem with my shell script.

i want to write a shell script to rename multiple
files by implementing a "ren" funtion

this is the synopsis : ren [-fi] source.... "dest_pat"

the command expects as arguments a number of source
files and a destination pattern. Each source file is
renamed so that it matches the destination parren. Two
forms of dest_pat are allowed:

*.new_ext
new_filename.*

in the first case the extension of every source file
is changed to new_ext. if a source file has no
extension, then new_ext is added to the file name.
there should be no wildcard characters in new_ext and
new_filename.

in the case the name of every source file is changed
to new_filename, and the old extension (if any) is
preserved.


please can u help me i have only gotting as far as
this



foreach test (hello.*)

mv $test importantstuff.$test:e

end

i more than this help me.
thank u..

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-03-22 11:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-22 11:15 shell script(using csh) ayo jegede

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).