The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Simple Copy?
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Simple Copy?
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
11-29-2005
grasper
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.
grasper
View Public Profile
Find all posts by grasper