From: ayo jegede <mr_starang@yahoo.com>
To: Zsh-workers@sunsite.auc.dk
Subject: shell script(using csh)
Date: Wed, 22 Mar 2000 03:15:55 -0800 (PST) [thread overview]
Message-ID: <20000322111555.24182.rocketmail@web222.mail.yahoo.com> (raw)
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
reply other threads:[~2000-03-22 11:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000322111555.24182.rocketmail@web222.mail.yahoo.com \
--to=mr_starang@yahoo.com \
--cc=Zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).