This question already has an answer here:
So for example i have one folder called "test". Inside that folder, i created one another folder called "player" and a lot of text file, let's say 50 files.
[root@ip-10-0-7-70 test]# ls kaka.txt player rooney.txt
Now i want to move all of that text file into "player" folder. What's the best way to do this?
cp -r ls | ^egrep 'player'
but it didn't work.