How can I accept multiple-line input into a same script. Or in other words to process multiple files with the following script:
#!/bin/bash
echo 'Enter file names (wild cards OK)'
read input_source
if test -f "$input_source"
then
sort $var | uniq -c | head -10
fi