The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Shell script to ftp latest file
.
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
:
Shell script to ftp latest file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
11-22-2007
Cameron
Registered User
Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
My suggestion reading your query ...
REQUIRED_FILETYPE=UTIL_
...
cd ${DESIRED_DIR}
FILE=`ls -t ${REQUIRED_FILETYPE}* |
sed
'1q'`
echo ${FILE}
...
Then perform your outbound FTP.
Hope that helps.
Cheers,
Cameron
Cameron
View Public Profile
Find all posts by Cameron
Find Cameron's past nominations received
Find Cameron's present nominations given