i'm making a little shell script and i want to stock all files with same suffix in a table.
i want something like that :
path=/home/user/Documents
suffix="_suffix.txt"
and then a function that create a table name files and fill it with file in $path with $suffix suffix. result :
echo files[0]
-> /home/user/Documents/project_suffix.txt
echo files[1]
-> /home/user/Documents/html_suffix.txt
echo files[2]
-> /home/user/Documents/jokes_suffix.txt. etc...
I don't want to have in my list other files like "budget.txt"
Thanks for your answers ! ;)