what about just: mv *.jpg ~/images/wallpapers/shared
that should work
I think you miss a very important point: * will be evaluated by the shell, before executing the command (whatever command is it), and therefore the shell will create the list you need.
ls, the command, will only format or sort the result (and grep is a filter)....
|