[mohaa] building a custom mod moving script
Steve Pirk
orion at deathcon.com
Wed Dec 31 17:47:53 EST 2003
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