The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
automated ftp.
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
automated ftp.
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-03-2007
Shell_Life
Registered User
Join Date: Mar 2007
Location: Bahia, Brazil
Posts: 695
sangfroid,
See if this would work for you:
Code:
vYYMMDD=`date '+%y%m%d'` vFName='logfile-'$vYYMMDD rm -f `ls -1 log* | egrep -v "$vFName"`
Shell_Life
View Public Profile
Find all posts by Shell_Life
Find Shell_Life's past nominations received
Find Shell_Life's present nominations given