Need year to display from ftped files list

Hi All,

p_ftp=dummy

time ftp -niv 192.0.0.2 << EOF
user dummy dummy
cd prt/$p_ftp
ascii
ls -ltr
quit

output is

-rw-r--r-- 1 500 500 5137 Mar 04 11:21 dummy.csv

can any one suggest how to get year while using ftp

Thanks in advance

I suggest using Perl for this. You can control everything much more than you can with these clumsy redirection and netrc methods.

See Perl Net::FTP for details and sample scripts.