On Mon, Jun 06, 2005 at 11:30:48PM -0500, Brock Noland wrote:
> I have two questions:
>
> 1. Does mailman add [tclug-list] to the subject automatically? The last time
> I asked a question it was not in the subject, I put it there manually this
> time.
Yes, [tclug-list] should be added automatically. I didn't notice
whether it was there for your previous message or not, but if it
wasn't it might have been because you sent the message as both
text/plain and text/html. Please send only plain text to the
list.
> 2. I am using the following commmand:
> find ${TARGET} -type f -user ${USER} -mtime +1 -o -mtime 1 ! -name '
> LogCleanup.list*' -exec gzip -f {} \;
>
> This will find files in $TARGET, owned by $USER, which are not named
> LogCleanup.list*, and have not been modifed in the last day or before.
>
> Correct? I am little ify on the -o command as I feel like it should be:
> find ${TARGET} -type f -user ${USER} ( -mtime +1 -o -mtime 1 ) ! -name '
> LogCleanup.list*' -exec gzip -f {} \;
I am not sure if I understand what you want, but if you want to
use parenthesis in your expression, if you are testing this from
a shell depending on which shell you are using, you may need to
escape them. So the your second expression would be:
find ${TARGET} -type f -user ${USER} \( -mtime +1 -o -mtime 1 \) ! -name 'LogCleanup.list*' -exec gzip -f {} \;
If I understand what you want correctly, then I think that you
could get the same results with:
find ${TARGET} -type f -user ${USER} -mtime +0 ! -name 'LogCleanup.list*' -exec gzip -f {} \;
The best way to test this kind of expression is just to replace
your "gzip -f" with an "ls -l" and see if it finds the files that you
want it to.
--
Jim Crumley |Twin Cities Linux Users Group Mailing List (TCLUG)
Ruthless Debian Zealot |http://www.mn-linux.org/
Never laugh at live dragons |