[linux] Iterating over each line of ls -l output