1. Find all files in home dir with size greater than and of certain type, finally copy them to usb flash drive (on Mac OS X):
find ~ -iname '*.tiff' -size +1M -exec cp {} /Volumes/flashka/tiff/ \;
On Max OS X to preserve directory structure use pax command:
find ~ -iname '*.tiff' -size +1M -exec pax -rw {} /Volumes/flashka/tiff/ \;
find ~ -iname '*.tiff' -size +1M -exec cp {} /Volumes/flashka/tiff/ \;
On Max OS X to preserve directory structure use pax command:
find ~ -iname '*.tiff' -size +1M -exec pax -rw {} /Volumes/flashka/tiff/ \;
Комментариев нет:
Отправить комментарий