How to use while read line with tail -n
问题 Problem: I have a CSV dump file - with excess of 250,000 lines. When I use while read - it takes a while (no pun intended). I would like to go back to the last 10,000 lines to do what I need to do instead of the 250,000 lines. Code Snippet: My current code is this: IFS="," while read line do awk_var=`echo "$line" | awk -F" " '{print $0}'` var_array=($awk_var) read -a var_array <<< "${awk_var}" echo "${var_array[1]}" done </some_directory/directory/file_in_question.csv Question: How can I use