#script to test if two values are what they are supposed to be, and add them to an error file if so #file to start with is "movie" $ cat movie x,5 y,ralf #script named "1" $ cat 1 #!/bin/bash a=`cat movie|grep x|cut -d, -f2` #a=5 b=3 c=`cat movie|grep y|cut -d, -f2` d=tits if [ "$a"-gt"$b" ] then cat movie|grep x >> movie.error fi if [ "$c"="$d" ] then cat movie|grep y >> movie.error fi