Commit 038dd69a authored by Samarth Joshi's avatar Samarth Joshi

uploading q4 script

parent eef23105
#!/bin/sh
# wc generated_output.txt |awk '{print $2}'
mismatch=$(diff generated_output.txt actual_output.txt | grep "c" | wc -l)
total=$(wc actual_output.txt |awk '{print $2}')
score=$(echo $total-$mismatch | bc)
echo "Secured $score marks out of $total"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment