The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
script to rename files with current date and copy it.
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
:
script to rename files with current date and copy it.
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
04-26-2007
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Code:
dt=$( date +%Y%M%d ) cd /tmp while read file do cp ${file} "${file}_${dt}" : > ${file} done < log
anbu23
View Public Profile
Find all posts by anbu23