[SLUG] trivial, but banging head on wall ...

2013-12-03 Thread James Linder
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

Re: [SLUG] trivial, but banging head on wall ...

2013-12-03 Thread Matt Hope
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,