I'd like to copy my 3 most recently downloaded files to another directory using Git Bash. I can list them using
ls -t ~/Downloads|head -n 3
, but how do I pass them as input to the cp function so that I can copy them to some other directory?
I'm pretty new to programming and Bash, so my apologies if this is obvious.