The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Simple Copy?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 11-29-2005
grasper grasper is offline
Registered User
 

Join Date: Sep 2005
Posts: 45
if you're using Korn shell or bash you can use:-

cp /dir/file /dir/$(ls -tr|tail -1)

cheers.
Reply With Quote