It was an old problem. I knew how to delete files and exclude some, like this:
rm `find ~/temporary/Test\ 1 -mindepth 1 -maxdepth 1|grep -v 'A'`
but the problem is the folder 'Test 1' containing a space in name, the result of find was
/home/owner/temporary/Test 1/B
It makes rm
error, how can I fix it?
find
orls
. They were not meant to have their output parsed, becausefind
can work on files directly: mywiki.wooledge.org/ParsingLs – slhck Nov 22 '13 at 9:29