How to use the xargs argument twice in the command on Linux?
For example, to rename
file.bak where file is from the stdin:
xargs mv $file $file.bak
One solution is to write a small script like move.sh
mv $file $file.bak
and invoke move.sh by xargs
However, it is very inconvenient that the move.sh should already there.
Are there other better methods?