[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: [cobalt-users] root partition is at 93%



<rdkurth@xxxxxxxxxxxx> wrote:
> SW> find / -size +"${SIZE_BYTES}c" -type f -exec ls -l '{}' ';' | sort
+4 -nr >
> SW> $LOG_FILE_DIR/large_files-$DATE_TODAY
>
> SW> chown -R admin:admin $LOG_FILE_DIR
>
>
> I keep getting this error message when I try to use the script
>
> syntax error near unexpected token `>'
> ./test:line 11: `find / -size +"${SIZE_BYTES}c" -type f -exec ls -l '{}'
';' | sort +4 -nr > '

The lines that follow may appear as two lines in this email due to wrapping.

find / -size +"${SIZE_BYTES}c" -type f -exec ls -l '{}' ';' | sort +4 -nr >
$LOG_FILE_DIR/large_files-$DATE_TODAY

Within the script have the above as a single line.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/