I have a script running that will read and print out this file. Right now I am using the following code:
Code:
#!/bin/sh
while sleep 1
do
cat camdata
done
And this code will print it out each time over and over again taking up multiple lines. The file is four lines of text. Is there anyway to just print the 4 lines and then when it comes time to print again....just print over the previous four lines so that there is always only 4 lines of text printed instead of 4 then 8 then 12 then 16.....etc?