[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find -die. -exec-die-upon-error
From: |
Dan Jacobson |
Subject: |
find -die. -exec-die-upon-error |
Date: |
Thu, 12 May 2016 14:08:04 +0800 |
Gentlemen, wouldn't it be great if instead of
# find /mnt/usb/thumb/backups/ -mtime -4 -type f -exec cp -av {}
/jidanni/backups/ \;
'/mnt/usb/thumb/backups/root_bkp2016-05-10-08-22-18.bz2' -> '/jidanni/backups/'
cp: cannot create regular file '/jidanni/backups/': No such file or directory
'/mnt/usb/thumb/backups/dan_home_bkp2016-05-10-08-21-36.bz2' ->
'/jidanni/backups/'
cp: cannot create regular file '/jidanni/backups/': No such file or directory
'/mnt/usb/thumb/backups/etc_bkp2016-05-10-08-22-18.bz2' -> '/jidanni/backups/'
cp: cannot create regular file '/jidanni/backups/': No such file or directory
we could stop right away?
That's way find needs an -exec-die-upon-error a/k/a -exece or something.
Or perhaps -exec ... -o -die
How could find live without a -die action?
- find -die. -exec-die-upon-error,
Dan Jacobson <=