Copy the latest file to a directory

Hi Team,
I wish to copy the latest file of pattern "MyFile*" to some other location.
I need to do all the operation in a single command separated by |.

ls -rt <MyFile*> | tail -1 | <copy command>.

How can I do?
Please help me.

Thanks,
Kanda

Hi.

The question has been asked before.

i.e. Copy the latest file from one directory to another

cp `ls -rt <MyFile*> | tail -1` <destination>

The `` causes the command within to be evaluated and the output then used in it's place.