A messenger application for Raspberry Pi Zerofor A.U.TH (Real time Embedded systems).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
375 B

  1. #! /bin/bash
  2. for AEM in 7700 8261 8765 8844 8880 8861 8877 8941 8934 8997; do
  3. echo I have send $(grep -e "Out dev=$AEM" output.txt| wc -l) messages to $AEM
  4. echo I have received $(grep -e "In dev=$AEM" output.txt| wc -l) messages from $AEM
  5. # bad!! Pi0
  6. echo I have echo-back $(grep -e "Out dev=$AEM, message: from=$AEM" output.txt| wc -l) messages to $AEM
  7. done