( KomiZ | 2008. 08. 06., sze – 21:19 )

Már kipróbáltam így:
if [ $(${MOST}-$(ls -rt| tail -1 | cut -d. -f2)) -lt 300 ]
eredmény:
line 11: 1218050087-1218050079: command not found
line 11: [: -lt: unary operator expected
és így:
if [ $((${MOST}-$(ls -rt| tail -1 | cut -d. -f2)) -lt 300) ]
ebből ez lett:

command substitution: line 11: syntax error near unexpected token `-lt'
command substitution: line 11: `(${MOST}-$(ls -rt| tail -1 | cut -d. -f2)) -lt 300'

nem tudom mi lenne a helyes feltételsor.

Köszi