find probleme

Maik Holtkamp s-y-l at gmx.net
Fri Oct 10 16:40:07 CEST 2003


Hi,

ich dacht mir, es waere ganz gut wenn mein Backupscript zu alte logs
gleich selber loeschen wuerde. Aber leider habe ich da jetzt
irgendwie einen Knoten im Hirn :(:

---cut---
syl work(0) # find /mnt/ieee/work -ctime +7 -name 'rsync.log*'
/mnt/ieee/work/rsync.log_030918
/mnt/ieee/work/rsync.log_030927
/mnt/ieee/work/rsync.log_031001
syl work(0) # head -n 2 /usr/local/sbin/syncwork.sh
#!/bin/sh
find /mnt/ieee/work -ctime +7 -name 'rsync.log*' exec rm {} \; || {
syl work(0) # syncwork.sh
find: paths must precede expression
Usage: find [path...] [expression]
Konnte alte logs nicht loeschen
...
---cut---

Wieso geht das nicht?

TIA.

-- 
bye maik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20031010/65cf2f86/attachment.sig>


More information about the Linux mailing list