# 'find' some files, then use 'xargs' to pass them pairwise to 'mv' # moving the contents of the first file to the second file # 'xargs' will stop when 'mv' returns a bad exit code find "$HOME" / -type f -print0 | xargs -0 -n 2 mv -f
# 'find' some files, then use 'xargs' to pass them pairwise to 'mv' # moving the contents of the first file to the second file # 'xargs' will stop when 'mv' returns a bad exit code find "$HOME" / -type f -print0 | xargs -0 -n 2 mv -f