I have one txt file that has bunch of class names.
I would like to read those class names line by line in bash script and assign that value to a variable to use it globally in another command in the script.
FILES="files.txt"
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
cat $f
done
I'm assuming
files.txtis a list of the class files, one class per line?If you have more than one file of classes, use an array.
Don't make it all caps.