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 -->
  #1 (permalink)  
Old 09-25-2006
u263066 u263066 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 66
validation :file <filename>

My user is ftp a CSV file from window. There is possiblity to doing FTP through different mode.

This file is then picked by another program, but I want to make sure the FTP file would be always ascii format, bu releasing a commaon File <file name>

Can any one provide input , abut how to put a validation means

if file return = ASCII
ok
otherwise
ret code=1