Re: Need help creating a script to move multiple files
eatdren_at_ut.com
Date: 12/07/04
- Next message: Thomas Dickey: "Re: curses background color"
- Previous message: shea martin: "Re: old_procfs.h and large file environment"
- In reply to: Pascal Bourguignon: "Re: Need help creating a script to move multiple files"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: Need help creating a script to move multiple files"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: Need help creating a script to move multiple files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 06 Dec 2004 20:00:54 -0600
Sorry for being ignorant on this, but what are the -e and -a doing in
this instance?
On 06 Dec 2004 07:44:33 +0100, Pascal Bourguignon
<spam@mouse-potato.com> wrote:
>eatdren@ut.com writes:
>
>> I am needing to create a script that checks a directory to see if
>> certain (around 15) files are present. If so, it needs to move them
>> to a different directory and also create an empty trigger file in the
>> second directory so another process will know that all of the files
>> are there.
>>
>> The problem I am having is that the file names are not consistent,
>> meaning I can't use a wild card to count the files.
>>
>> Does anyone have any examples or help they can give me?
>
>if [ -e f1 -a -e f2 -a -e f3 ... -a -e f15 ] ; then
> do_something
>fi
>
>Does anyone have a more precise specification of what they want?
- Next message: Thomas Dickey: "Re: curses background color"
- Previous message: shea martin: "Re: old_procfs.h and large file environment"
- In reply to: Pascal Bourguignon: "Re: Need help creating a script to move multiple files"
- Next in thread: Jens.Toerring_at_physik.fu-berlin.de: "Re: Need help creating a script to move multiple files"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: Need help creating a script to move multiple files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|