Hi all,
I am trying to write a simple bash script that will search for files with a certain extension in a directory. Then output all those files with full path in front.
For example, if I have a directory with many different file types, but I want to know the information about those with only the .txt extension. How can I get the output in a new file to look similar to this:
/home/jason/code/test1.txt
/home/jason/code/test2.txt
.
.
.
All I have right now is this, which is not really what I am trying to do, but it is just my attempt at experimentation because I am new:
ls *.txt >prog_list.txt
pwd >pwd.txt
cat pwd.txt prog_list.txt > prog_dir.txt