This content has been marked as final. Show 2 replies
I need to create a file with list of .txt files in a specific directory (actually the command will be used by a java application).
I am using the below command,
ls home/apptmt/park/*.txt > home/apptmt/park/reportgen.txt
but this command prints output as
I need only the files in reportgen.txt file, like
any one help me on the command I should use to get this output?