Untitled
public shellscript v1 · immutable#!/bin/bashx=1more /tmp/cal.tmp | grep R= | while read linedo if [ $x -gt 0 ] then echo $line echo "exiting..." exit 1 else echo "running..." x=0 fidoneif [ $? -eq 1 ]; then exitfiecho "finished loop"exit 0