I displayed all the files from a directory using the cmd,
ls /home/user1/. Now I need to display all content of particular files present in this directory
ls /home/user1/tmp/ containt three files
sample1.txt sample2.txt sample3.txt sample5.js sample6.html
How to display only the content of .txt files present in these files
I have tired ls /home/user1/tmp/ | grep '.txt$' | cat /home/user1/tmp
But it is not working as I need.
Please help. Thanks in advancd