Bash shell script - batch process multiple files by command line
Posted on 2006-03-27
I have a bash script that works great when i process a single file by command line. I use
and it processes it great. I have a large directory full of .txt files that I want the script to process one by one and append all results to one single file for mysql import. I've tried doing check *.txt but it will only do the first file in the directory. Any ideas? Here is my current partial script.
if test $# -lt 1; then
echo "usage: check <filename>";
Thanks in advance!