#last_text=`cat /tmp/cpu_edf0 | grep -n "^Tasks can be scheduled"| cut -c1-2`; start_point=$last_text; echo $start_point; 
#stop_point=`wc -l /tmp/cpu_edf0 | sed -s '1,$s/ \/tmp\/cpu_edf0//'`; echo $stop_point; let diff=$stop_point-$start_point; 
#tail --lines=$diff /tmp/cpu_edf0;
cat /tmp/cpu_edf0 | sed -s '1,$s/$/:/' | sed -s '1,$s/ Task /T/' | sed -s '1,$s/ Idle/Tx/' > /tmp/cpu_edf; 
cut -d' ' -f2 /tmp/cpu_edf > /tmp/cpu_edf1; 
cut -d' ' -f1 /tmp/cpu_edf > /tmp/cpu_edf2; 
echo "WP1:" > /tmp/cpu_edf; 
#paste -d' ' /tmp/cpu_edf1 /tmp/cpu_edf2 | sed -s '1,$s/[0-9]*$/&-&/' >> /tmp/cpu_edf; 
paste -d' ' /tmp/cpu_edf1 /tmp/cpu_edf2 | sed -s '1,$s/[0-9]*$/1-1/' >> /tmp/cpu_edf; 
echo "T99: 0-0" >> /tmp/cpu_edf;  echo "T99: 0-0" >> /tmp/cpu_edf; 
./gantt.sh /tmp/cpu_edf | grep "^T" | grep -v Tx |sed -s '1,$s/ [0-9].*$//' | sed -s '1,$s/█/+/g' | sed -s '1,$s/▒/-/g'  | sort  | ./condensed_gantt | grep T[0-9]* | sed -s '1,$s/-/▒/g' | sed -s '1,$s/+/█/g'
