I have multiple files with the same "prefix". For instance...
"memlist"
"memweb"
How can I create variables containing these file names by having the prefix as another variable? For instance, something like...
for prefix in mem pvd
do
file1=$prefix.list
file2=$prefix.web
done
I know this is wrong because the result would have the period inserted. So maybe a better way to phrase the question is, how do I append the prefix to create another variable?
"memlist"
"memweb"
How can I create variables containing these file names by having the prefix as another variable? For instance, something like...
for prefix in mem pvd
do
file1=$prefix.list
file2=$prefix.web
done
I know this is wrong because the result would have the period inserted. So maybe a better way to phrase the question is, how do I append the prefix to create another variable?