#! /Bin/bashwhile [1] Do A =$ (ifconfig eth0 | grep 'rx PAC '| awk' {print $2} '| awk-F: '{print $ NF}') echo-ne "$ A \ r" # refresh data done without line breaks
Echo
Parameter number:-N. Do not wrap the line at the end.
-E if the following characters appear in the string, it will be specially processed and will not be treated as a general text output:
\ A sends an alert;
\ B Delete the previous character;
\ C does not end with a line break;
\ F line feed, but the cursor remains at the original position;
\ N wrap and move the cursor to the beginning of the line;
\ R move the cursor to the beginning of the line without line breaks;
\ T Insert tab;
\ V is the same as \ F;
\ Insert \ characters;
\ NNN inserts the ASCII characters represented by NNN (octal;
-- Help: Display help
-- Version: displays version information.
The echo commands supported by each shell may be different.
-N does not output the final \ n
-E: Interpreting escape characters
-E does not interpret escape characters