How to list files names and sizes in a directory and output result to the file?

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 ?

/tmp
file1.txt
file2.txt

ls -ltr  |grep -v '-' | awk print {$9, $5} > output.txt

cat output.txt
file1.txt 
file2.txt

output.txt

ls -ltr > .output.txt

By default, ls does not list so-called hidden files, ones that start with the dot character.

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?

I tried it did not work still i see output.txt in the file list.

cat output.txt
file1.txt
file2.txt 
output.txt

expected result

file1.txt
file2.txt

You seem not to have put the dot in front of the file name as suggested by jim mcnamara.

any suggestions ?

As RudiC mentionned, what you showed in your last post shows you did not take into account Jim's suggestion...
Why?

Too pedantic, thus removed my contribution :cool:

Well, there have been two, none of which you considered to give a trial.