I am trying to copy a file from a dir to another directory location using regx * like below
cp /location1/abc_* /location/xyz_
Its failing to copy because In location1 there are many files with abc_123 abc_234 like these.
Seems like command get confuse to copy which file as xyz_
I want to copy only the file which is recent abc_ file. Is there any way to achieve this requirement?