Answer the question
In order to leave comments, you need to log in
[Solved] Shell echo not scrolling output?
There is a simple script made by a noob:
#!bin/sh
while true
do
a=`ipfw show | grep ng |wc -l`
b=`date | cut -c12-19`
sleep 1
echo "$b Currently alive sessions: $a"
done
Answer the question
In order to leave comments, you need to log in
And yet, using the example of sh, and not bash, I decided like this:
#!bin/sh
while true
do
a=`ipfw show | grep ng |wc -l`
b=`date | cut -c12-19`
sleep 1
printf "$b Current ng interfaces count is:$a \r"
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question