I'm getting an error that I can't make heads or tails of when trying to use cp through xargs
grep -l -r .mp4 * | xargs cp -t ./Destination Results in
cp: invalid option -- 'G' The goal here is to search through the current folder, and copy all mp4 files to the folder Destination. I don't understand where the error message is getting the 'G' from though, as I'm not calling any option G, or even using the character G at all in the CP argument!
Can anyone help me understand what's going on here please? If it makes a difference i'm using the stock terminal window in a pretty fresh install of Ubuntu 18.04.3
-G? Do you still get the error with[...] | xargs cp -t -- ./Destination?xargs cp -t -- ./Destination[...] | xargs cp -t -- ./Destinationjust gives mecp: failed to access '--': No such file or directoryAlso no, no file starts with -G