The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 11-23-2007
uvrakesh uvrakesh is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 78
Hi Cameron,

FILE=`ls -t ${REQUIRED_FILETYPE}* | sed '1q'`

I tried this,, it would not work, because the ls executed on ftp is not the same as the actual ls as mention in the previous mail.

i wished it would work, so that the work become little easier

here is the output if run ls and pipe its output to sed

ftp> ls -t UT* | sed '1p'
usage: ls remote-directory local-file
ftp>

RUV