I know I can pass the pattern to the scp command itself. But here the usage is for explaining the xargs command. In practical usage I replace scp with my own autocopy script. Autocopy script does not need me to give the password. But unlikely it is not that smart with the regex pattern. Then xargs comes handy to me to pass each filename to the Autocopy script in place of regex pattern.