Hi ,
I'm trying to list the files and output is written to a file. But when I execute the command , the output file is being listed. How to exclude it ?
Unless used for special purposes, the -t and -r options to ls are pointless when you just want to list a directory, and cost processing time.
Why don't you put the output into another directory?