[mohaa] building a custom mod moving script

Nathan Peters natedog550 at hotmail.com
Wed Dec 31 17:58:16 EST 2003


Hmmm.  Ok.  What about making it a loop?  Boolean?  so that if it's true it
moves it or if false does something else........etc etc?  How would I do
that?

Nathan - A.K.A. [BASHYOU] SNiPeS


----- Original Message ----- 
From: "Steve Pirk" <orion at deathcon.com>
To: <mohaa at icculus.org>
Sent: Wednesday, December 31, 2003 4:47 PM
Subject: Re: [mohaa] building a custom mod moving script


I believe:

find . -type d -name name-of-mod -print

will only return a single directory named name-of-mod.
If you want them all (to load up an array maybe), then:

find . -type d -print

will return all of them (type f if you want only files).

--
Steve (egrep)

On Tue, 30 Dec 2003, Nathan Peters wrote:

> hey everyone.....i have built some custom scripts that start, shutdown,
> and restart the mohaa server. some of u may have looked at it.
> Neways.......I am gonna try and make a mod moving script. So.....this
> script needs to read a directories contents......check to see if a
> certain file name is there. If it is then move it to a folder called
> "disabledMODS" or something like that. Then do just the opposite to put
> it back. Then i'll have it restart the server when it's done. I know
> how to do the mv command. But i don't know how to make it check for a
> file in a directory. Can anyone help me out? Thanks.
>
> Nathan - A.K.A. [BASHYOU] SNiPeS
>
>
____________________________________________________________________________
____
> Expand your wine savvy - and get some great new recipes - at MSN Wine.
>



More information about the Mohaa mailing list