find, grep, and white spaces

view story

http://forums.fedoraforum.org – Hello, My objective is to make a tar file (a backup) of all files smaller then 5M. This file should exclude file in the backup/YY subdirectory and all hidden files. Some of the file name contain whitespaces. I attempted this with the commands below. This resulted in an empty archive. Taking it piecemeal grep isn't working correctly. So, what would be the easiest way to fix this? Thanks for the help, H. Code: find . -type f -not -size +5M -print0 | grep -v "backups/[0-9][0-9]*" | grep -v "[.]/[.]" | xargs -0 -n1 tar -cf foo.tar (HowTos)