From: docv <docv@sbcglobal.net>
To: Ray Olszewski <ray@comarre.com>
Cc: Staci <spiritlover666@yahoo.com>, linux-newbie@vger.kernel.org
Subject: Re: Suggestion for help-page?
Date: Sun, 28 Apr 2002 18:08:29 -0500 [thread overview]
Message-ID: <3CCC80ED.4050301@sbcglobal.net> (raw)
In-Reply-To: 2.2.32.20020428222404.010b3648@[192.168.1.23]
As one very newbie to another,
Wouldn't it be "safer" to use 'mv' instead of 'cp' and 'rm'? That way,
if the destination dir didn't exist (/industgoth/new) the script would
error out and not have removed any of the mp3 files from the original
location.
Also, was there a special reason for the copying them to the root dir
instead of straight to the destination dir?
Ray Olszewski responded to:
>>I made one called test, it contained just this...
>>
>>#!/bin/bash
>>cp /home/staci/*.mp3 /
>>cp /*.mp3 /industgoth/new
>>rm /*.mp3
>>rm /home/staci/*.mp3
>>
--
Steve
docv@sbcglobal.net
In a world without walls and fences there is no need for windows nor gates.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2002-04-28 23:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-28 22:24 Suggestion for help-page? Ray Olszewski
2002-04-28 23:08 ` docv [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-04-28 20:45 Staci
2002-04-28 21:04 ` 1stFlight
2002-04-28 21:34 ` Staci
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=3CCC80ED.4050301@sbcglobal.net \
--to=docv@sbcglobal.net \
--cc=linux-newbie@vger.kernel.org \
--cc=ray@comarre.com \
--cc=spiritlover666@yahoo.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox