while loop extremely slow read file
问题 I have a while loop that that reads in a ftp log file and puts it into an array so I'll be able to search through the array and match up/search for a flow. Unfortunately the while loop is taking forever to get through the file, it is a very large file but there must be another faster way of doing this. # read file into array for original search results while read FTP_SEARCH do ogl_date[count]=`echo $FTP_SEARCH | awk '{print $1, $2}'` ogl_time[count]=`echo $FTP_SEARCH | awk '{print $3}'` ogl