I have a bash script called TestList and I want it to take the argument Small/*.c
Small is a directory and it contains files:
bar.c bar.h foo.c foo.h main.c
The goal is to get Small and *.c as seperate strings in my bash script but whenever I try to do this *.c always becomes bar.c
for example:
echo `ls Small/*.c``
outputs: Small/bar.c Small/foo.c Small/main.c
echo `ls $1``
outputs: Small/bar.c