James,
First I thing that having spaces in filenames is like wearing a
tee shirt saying hit me!.
Please remember that a pathname for valid POSIX filesystem may
contain anything except the null character.
I'm trying to backup all my wife's pictures and although I can
On 12/4/13, Matt Hope matt.h...@gmail.com wrote:
Random tips:
cp -t argument sometimes useful
rsync -avu src/ host://dest/ might be preferable
when find's -print0 also use:
[e]grep's -z and -Z (or -zZ) options
xarg's -0 option
Something I cut and pasted off the internet years ago:
Way to
Hi
First I thing that having spaces in filenames is like wearing a tee shirt
saying hit me!.
I'm trying to backup all my wife's pictures and although I can do any one file
on CLI doing a script is humbling me. If anyone can help I'd be grateful.
Thanks
#!/bin/bash
Random tips:
- You can use find in one command, rather then loop over the file extensions
find . -type f ! -name '*thumb*' \( -iname '*.tif' -o -iname '*.jpg'
-o -iname '*.jpeg' -o -name '*.orf' -o -name '*.nef' \)
- Might be a good idea to set IFS to '\0', combined with find's
-print0 argument,