I am a student learning bash. I am currently trying to print a series of absolute file paths to run additional scripts with.
Currently echo $PWD, *In
does not work.
My file structure looks like.
/home/hayden/myProject/gene
within this directory there are several folders but I am specifically interested in three.
/largeIn/
/mediumIn/
/smallIn/
Within these folders there are differently named files that all end with .fa
.
Is there a simple way to extract the files paths to a txt file?
to looks like this
/home/hayden/myProject/gene/largeIn/file.fa
/home/hayden/myProject/gene/mediumIn/file.fa
/home/hayden/myProject/gene/smallIn/file.fa
Thank you
EDIT: @Afle solution was successful.