I am new to shell scripting.
I want to basically use cat command as,
cat file1.txt file2.txt > output.txt
But the inputs namely file1.txt and file2.txt should come from the ls output as ls fil*.txt.
I know I have to use pipes(|) but I'm finding it difficult to google.