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
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 -->
#
6
(
permalink
)
04-30-2007
Birasing
Registered User
Join Date: Apr 2007
Posts: 1
question
dt=$( date +%Y%M%d )
while read file
do
cp ${file} "${file}_${dt}"
: > ${file} --I did not undestsand this line, what does this line
done < /tmp/logs
Can u explain, what does that line.
Birasing
View Public Profile
Find all posts by Birasing