B
Bastami
Guest
Hello all,
I am running the below shell script on my Ubuntu
and I 'm getting this error:
f100 is one of many files in directory (f1, f2, ..., fn). When I change the name of f100 to 'hundred' the error will repeat for the next files (f101).
what is wrong with file names?
Any help would be greatly appreciated.
I am running the below shell script on my Ubuntu
Code:
while read *
do
awk 'NR==start,NR==end {sum+=$2} END {print FILENAME,start,end,sum}' start="$f2" end="$f3" "$f1"
done < B > B.new
Code:
read: f100: bad variable name
what is wrong with file names?
Any help would be greatly appreciated.