Re: Need help creating a script to move multiple files

eatdren_at_ut.com
Date: 12/07/04


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?



Relevant Pages

  • Re: Batch or VBScript command needed
    ... If you just want to see their OU path casually, like not needing it in a ... script or something, you can see that by default in dsa. ... I forget the command used to obtain this information. ...
    (microsoft.public.windows.server.scripting)
  • Re: Palestineans to Philistines?
    ... Thing is, simple JTard, that if you're wrong about me, you're still ignorant about the language, script, and linguistics yet use those things you are ignorant of to make claims about the language, script, and linguistics....see the problem yet, you don't any of those, you reject their foundation, and then contradict yourself and try to use what you reject to make very specific claims about what you confess you don't know! ...
    (soc.history.ancient)
  • Need help creating a script to move multiple files
    ... I am needing to create a script that checks a directory to see if ... meaning I can't use a wild card to count the files. ...
    (comp.unix.programmer)
  • Scripting cube role via XMLA or AMO?
    ... I am needing the ability to create roles with dimensional ... security inside of a cube. ... But my issue is if I try to script out an ... I see if I browse the cube definition file, ...
    (microsoft.public.sqlserver.olap)
  • Re: Counting the files in a directory....
    ... due to their size and the relative rarity of us ... needing to pull something out of it. ... Or is this script not invoked regularly? ...
    (comp.lang.ruby)