I need to use find and mv together requirement : Need to find all file *.xml but exclude deposit.xml and move it to another folder ( fairly simple)My attempt :mv `find ./*.xml '!' -type d | fgrep -v deposit.xml` ./ArchiveThis works perfectly fine if there are any files, If no files are present it throws below error mv: missing destination file operand after `./Archive'Try `mv --help' for more information.*
Find and move with exclude
find;mv