-rw-r--r-- 1 xxxxxxxx xxxxxxx 23552 Mar 3 2010 this is a test.txt
-rw-r--r-- 1 xxxxxxxx xxxxxxx 24064 Mar 3 2010 this test2 .txt
-rw-r--r-- 1 xxxxxxxx xxxxxxx 28160 Aug 17 11:12 this is test 2.txt
i have this line of code to get the files names out
however, i am sorry to say it does not solve my original problem
cat xxx.log
-rw-r--r-- 1 xxxx sftponly 6 Feb 2 14:51 this_is_a_test_file1.txt
-rw-r--r-- 1 xxxx sftponly 6 Feb 2 14:51 this is a test file2.txt
drwxr-xr-x 2 xxxx sftponly 512 Feb 2 15:04 test
-rw-r--r-- 1 xxxx sftponly 13 Feb 3 09:53 this_is_a_new_test1.txt
-rw-r--r-- 1 xxxx sftponly 13 Feb 3 09:53 thisisanewtest1.txt
sftp>
run this
cat xxx.log | sed "1,/^sftp> ls -ltr/d" | /usr/xpg4/bin/awk '{for(i=1;i<=8;i++){$i=""};}1'
get this
this_is_a_test_file1.txt
this is a test file2.txt
test
this_is_a_new_test1.txt
thisisanewtest1.txt
$ awk --version | head -1
GNU Awk 3.1.8
$ awk --posix 'BEGIN { FS="([[:graph:]]+[[:blank:]]+){8}" } { printf "%s\n", $2 }' infile
this is a test.txt
this test2 .txt
this is test 2.txt