All pastes #638888 Raw Edit

Stuff

public text v1 · immutable
#638888 ·published 2007-07-30 05:26 UTC
rendered paste body
#!/bin/bash
IFS='""' 
tail --lines=1 -f text.file | while read kumand statx y z 
do
        larga="1"
#       echo "inside while loop"
        until [ "$larga" = "0" ]
        do
#               echo "inside until loop"
                varstat=`tail -1 redgreen`
                if [ "$varstat" = "OK" ]
                then 
                        echo "kumand=$kumand   statx=$statx  y=$y       z=$z"
                        larga="0"
                else
                        larga="1"
                        echo "Trying to write..."
                        sleep 2
                fi
        done
done

##inside my text file is 
#add""test me""123""444
#i have a problem with the code above cuz it wont read the exact fields assuming that the separtor is double qoute("")