You meant xargs -I '{}' mv {} /old/ – anishsaneMar 4 at 13:42
Wow, I thought it would be enough with what I wrote. Thank you, now I see it was not complete and yours is working, @anishsane. – fedorquiMar 4 at 13:44
thx anishame ur fix works perfectly – hudiMar 4 at 13:44
We should give this +something to @anishane! : D – fedorquiMar 4 at 13:46
ur command gives me error: find: missing argument to `-exec' – hudiMar 4 at 13:40
What does find --version say? And did you include the +? – melpomeneMar 4 at 13:42
yes I include+ find (GNU findutils) 4.4.2
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS() CBO(level=0) – hudiMar 4 at 13:43
+1 to this answer from me. -exec is the option provided for this exact reason. – anishsaneMar 4 at 13:53
yea but this example doesnt work for me – hudiMar 4 at 14:01