reload
elapsed
elapsed set
elapsed
elapsed set && sleep 0.1 && elapsed
elapsed set && sleep 0.2 && elapsed
elapsed set && sleep 0.3 && elapsed
elapsed set && sleep 0.4 && elapsed
elapsed set && sleep 1 && elapsed
alias-edit
echo $(( $(elapsed) + 1000 ))
elapsed set
echo $(( $(elapsed) + 1000 ))
echo "$(elapsed) $(( $(elapsed) + 1000 ))"
alias-edit
sudo reboot
elapsed
env | grep -o "ns"
env | grep "ns"
elapsed
txtf boot
alias-edit
txtf boot
sudo reboot
elapsed
env | grep -o "ns"
env
txtf bootlog
txtf boot
sudo reboot
/usr/bin/env
/usr/bin/env | grep ns
/bin/env | grep ns
env | grep ns
txtf bootlog
alias-edit
txtf boot
sudo reboot
txtf bootlog
elapsed
txtf boot
env | grep ns | grep -oe '[^=]*$'
env | grep ns 
env
sudo env
sudo env | grep ns | grep -oe '[^=]*$'
sudo -- bash -c "env | grep ns | grep -oe '[^=]*$'"
sudo -- bash -c "env | grep ns"
sudo -- bash -c "env"
env
elapsed set
env
sudo -- bash -c "export ns=1234"
env
/usr/bin/env
export ns=1234
env
export ns=12345
sudo -H gedit /etc/environment
txt .bashrc
ls -la
cat ns
txt .bashrc
txtf boot
sudo reboot
env
elapsed
elapsed set
txt .bashrc
sudo reboot
elapsed
elapsed set
elapsed
elapsed set
elapsed
cd .emulationstation
ls -la
cd scripts/
ls -la
mkdir sleep
mkdir wake
cd sleep
cp ../game-select/0_serial.sh ./0_serial.sh
ls -la
cd ..
cd wake
cp ../game-select/0_serial.sh ./0_serial.sh
ls -la
cd ..
cd sleep
txt 0_serial.sh 
txt /opt/retropie/configs/all/mylog.txt 
ls -la /opt/retropie/configs/all
ls -la ~/ADMIN/.log
cat ~/ADMIN/.log/emulationstation.log 
sudo find / -name "*emulationstation.log"
txtf es-start
txtf boot
txtf es
txtf states
sudo mc
date +%F\ %T
ls -la
txt 0_serial.sh 
sudo mc
cd
cd ADMIN/.sys
ls -la
txt .settings
cd
cd .emulationstation/scripts/
cd ~/.emulationstation/scripts/sleep
txt ~/.emulationstation/scripts/sleep/0_serial.sh 
grep log_dir /home/pi/ADMIN/.sys/.settings
cat /home/pi/ADMIN/.sys/.settings
grep dir_log /home/pi/ADMIN/.sys/.settings
grep -wo dir_log /home/pi/ADMIN/.sys/.settings
grep -w dir_log /home/pi/ADMIN/.sys/.settings
grep -w dir_log /home/pi/ADMIN/.sys/.settings | sed 's/\'//g'
grep -w dir_log /home/pi/ADMIN/.sys/.settings | sed 's/'//g'
grep -w dir_log /home/pi/ADMIN/.sys/.settings | sed "s/'//g"
grep -w dir_log /home/pi/ADMIN/.sys/.settings | cut -d= -f2 | sed "s/'//g"
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
cat ~/ADMIN/.log/es.log
printf "" | sudo tee  ~/ADMIN/.log/es.log
ls -la ~/ADMIN/.log
cat ~/ADMIN/.log/es.log
sudo mc
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
bash 0_serial.sh 2>&1 | grep sleep
bash 0_serial.sh 2>&1 | awk -F'\\/' '{print $NF}'
bash 0_serial.sh 2>&1 | awk -F'\\/' '{print $NF-1}'
bash 0_serial.sh 2>&1 | awk -F'\\/' '{print ($NF-1)}'
bash 0_serial.sh 2>&1 | awk -F'\\/' '{print $($NF-1)}'
bash 0_serial.sh 2>&1 | awk -F'\\/' '{print $(NF-1)}'
bash 0_serial.sh 2>&1 | awk -F'/' '{print $(NF-1)}'
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh 
txtf es-start
txtf boot
txt 0_serial.sh 
bash 0_serial.sh 
txt 0_serial.sh 
bash 0_serial.sh && cat ~/ADMIN/.log/es.log
txt 0_serial.sh 
bash 0_serial.sh && cat ~/ADMIN/.log/es.log
txt 0_serial.sh 
bash 0_serial.sh && cat ~/ADMIN/.log/es.log
txt 0_serial.sh 
bash 0_serial.sh && cat ~/ADMIN/.log/es.log
txt 0_serial.sh 
sudo mc
ls -la
ll
ls -la
sudo reboot
ls -la
sudo rm env joy ns scriptdir
ls -la
cat .lesshst
cat DUMP
sudo rm DUMP
ls -la
cat ~/ADMIN/.log/es.log
txtf bootlog
txtf boot
cat ~/ADMIN/.log/es.log
cd RetroPie/scripts
cd .emulationstation/scripts
ls -la
cd ..
ls -la
cd scripts
ls -la
cd sleep
ls -la
stat 0_serial.sh | grep Access
stat 0_serial.sh
stat ~/ADMIN/.log/es.log
txtf es-start
ls -la
txtf es-end
txtf es-start
txtf es-end
cat ~/ADMIN/.log/es.log
cd ..
ls -la
sudo cp -R wake quit
ls -la
sudo chown -R pi:pi quit
ls -la
cd quit
ls -la
cat ~/ADMIN/.log/es.log
ls -la
txt 0_serial.sh
cd ..
ls -la
cp -R quit reboot
ls -la
cp -R quit shutdown
ls -la
cp -R quit game-start
cp -R quit game-end
cp -R quit screensaver-stop
sudo reboot
cat ~/ADMIN/.log/es.log
clear
tail -F ~/ADMIN/.log/es.log
cd .emulationstation/scripts/
ls -la
nano game-start/0_serial.sh 
nano game-end/0_serial.sh 
nano game-start/0_serial.sh 
txtf es_settings
cd ..
ls -la
nano es_settings.cfg
ls -la
cd .scripts.bak/
ls -la
cd ..
ls -la
cp es_systems.cfg es_systems.cfg.bak
ls -la
nano es_temporaryinput.cfg 
ls -la
mkdir .BAK
ls -la
sudo mc
sudo -df ./gamelists
sudo du -sh ./gamelists
sudo mc
sudo du -sh ./themes/BUBBLEGUM/
sudo mc
cd scripts
ls -la
tail -F ~/ADMIN/.log/es.log
ls -la
nano screensaver-stop/0_serial.sh 
cp -R screensaver-stop/ screensaver-start
ls -la
sudo reboot
tail -F ~/ADMIN/.log/es.log
key f4
tail -F ~/ADMIN/.log/es.log
send 'emulationstation\r'
tail -F ~/ADMIN/.log/es.log
cat ~/ADMIN/.log/es.log
txtf es-end
txtf boot
cd .emulationstation
cd scripts
ls -la
nano game-end/0_serial.sh 
nano game-select/0_serial.sh 
nano game-start/0_serial.sh 
nano quit/0_serial.sh 
nano reboot/0_serial.sh 
nano screensaver-start/0_serial.sh 
nano screensaver-stop/0_serial.sh 
nano shutdown/0_serial.sh 
nano sleep/0_serial.sh 
nano wake/0_serial.sh 
txtf es-start
txtf es-end
ls -la
sudo mc
cp sleep/0_serial.sh game-select/0_serial.sh
cp sleep/0_serial.sh system-select/0_serial.sh
sudo reboot
emulationstation
blank 1
blank +
blank 0
alias-func blank
alias-edit
sudo setterm --blank force --term linux </dev/tty1
sudo setterm --blank poke --term linux </dev/tty1
cat ~/ADMIN/.log/es.log
key space
key enter
tail -F ~/ADMIN/.log/es.log
cat ~/ADMIN/.log/es.log
cd .emulationstation
cd scripts
ls -la
for f in *.{text,txt}; do if [ -f $f ]; then echo $f; fi; done
for f in *.*; do echo $f; done
for f in .; do echo $f; done
for d in .; do echo $f; done
for d in .; do ls {$d}; done
for d in *; do ls {$d}; done
for d in *; do ls $d; done
for d in *; do cat $d/*.*; done
for d in *; do echo $d; cat $d/*.*; done
for d in *; do echo $d; cat $d/*.* |& grep date; done
cd ..
cp -R scripts ./.BAK/scripts.bak1/
sudo mc
for dir in ./; do ls -l $dir; done
cd scripts
for dir in ./; do ls -l $dir; done
for dir in *; do ls -l $dir; done
for f in *.sh; do grep date $f $dir; done
for f in *; do grep date $f $dir; done
for d in *; do grep date $d/*.sh; done
for d in *; do grep date $d/*.sh | sed 's/[^/]*\//\/../g'; done
for d in *; do grep date $d/*.sh | sed 's/[^[]*\//\/../g'; done
for d in *; do grep date $d/*.sh | sed 's/%F//g'; done
for d in *; do grep date $d/*.sh | sed 's/\\//g'; done
for d in *; do grep date $d/*.sh | sed 's/\\/\\ - /g'; done
for d in *; do grep date $d/*.sh | sed -i '/\\/\\ - /d'; done
for d in *; do grep date $d/*.sh | sed -i '/^\/d'; done
for d in *; do grep date $d/*.sh | sed -i '/^\\/d'; done
for d in *; do grep date $d/*.sh | sed '/^\\/d'; done
for d in *; do grep date $d/*.sh | sed '/\\/d'; done
for d in game-en
sudo mc
ls -la
for d in *; do grep date $d/*.sh | sed '/\\/d'; done
for d in *; do grep date $d/*.sh $d | sed '/\\/d'; done
for d in *; do grep date $d/*.sh $d/*.* | sed '/\\/d'; done
for d in *; do grep date $d/*.sh $d/* | sed '/\\/d'; done
ls -la
cd quit
ls -la
cd ..
ls -la
for dir in *: do ls -la $dir; done
for dir in *;do ls -la $dir; done
ls -la
for dir in *;do echo $dir; ls -la $dir; done
cd sleep
ls -la
sudo rm es_log
sudo rm log
cd ..
for dir in *;do echo $dir; ls -la $dir; done
for dir in *;do echo $dir; cat $dir/*.sh; done
for dir in *;do echo $dir; cat $dir/*.sh grep date | sed 's/;/;INSERTED_STRING;/3' ; done
for dir in *;do echo $dir; cat $dir/*.sh | grep date | sed 's/;/;INSERTED_STRING;/3' ; done
cd game-start
ls -la
cp 0_serial.sh 0_serial.bak
ls -la
for dir in *;do echo $dir; cat $dir/*.sh | grep date | sed 's/;/;INSERTED_STRING;/3' ; done
for dir in *;do echo $dir; rm $dir/*.sh ; done
ls -la
cd ..
ls -la
for dir in *;do echo $dir; rm $dir/*.sh ; done
ls -la
sudo mc
cd game-end
ls -la
nano 0_serial.sh 
bash 0_serial.sh 
cat ~/ADMIN/.log/es.log
cd ..
cd game-start
ls -la
sudo cp 0_serial.sh 0_serial.bak
ls -la
sudo rm 0_serial.
sudo rm 0_serial.bak
ls -la
cp 0_serial.sh 0_serial.bak
ls -la
sudo rm 0_serial.sh
ls -la
cd ..
for dir in *;do echo $dir; cp game-end/0_serial.sh $dir/0_serial.sh ; done
sudo mc
for dir in *;do echo $dir; bash $dir/*.sh ; done
cat ~/ADMIN/.log/es.log
cd game-start/
ls -la
sudo rm 0_serial.sh
mv 0_serial.bak 0_serial.sh
bash 0_serial.sh
cat ~/ADMIN/.log/es.log
nano 0_serial.sh
bash 0_serial.sh
cat ~/ADMIN/.log/es.log
txtf es-start
txtf es-end
sudo reboot
cat ~/ADMIN/.log/es.log
tail -F ~/ADMIN/.log/es.log
pkill omxplayer
joy up
pgrep omxplayer
txtf es_settings
ps -ef | grep SLEEO
ps -ef | grep SLEEP
sudo kill -9 776
ps -ef | grep SLEEP
sudo kill -9 778
ps -ef | grep SLEEP
sudo kill -9 788
ps -ef | grep SLEEP
sudo kill -9 824
ps -ef | grep S
ps -ef | grep SLEEP
sudo kill -9 826
ps -ef | grep SLEEP
sudo kill -9 828
ps -ef | grep SLEEP
ffprobe RetroPie/screensavers/screensaver.mp4 
sudo mc
cd ADMIN/CMD/SAVER
run calc_vid_length.sh 
txtf es_settings
joy d
joy up
joy a
pkill omxplayer
key f4
key esc
key f4
blank 0
sudo reboot
run ADMIN/CMD/SAVER/calc_vid_length.sh 
sudo chmod 775 ADMIN/CMD/SAVER/calc_vid_length.sh 
len=$(( $(bash ADMIN/CMD/SAVER/calc_vid_length.sh) ))
echo $len
echo $(( len + 60 ))
txtf es_settings
key f4
sudo kill -9 $(pgrep omxplayer)
send 'emulationstation\r'
cd .emulationstation/scripts
ls -la
cd screensaver-start
ls -la
txt 0_serial.sh 
mv 0_serial.sh 0_serial.bak
ls -la
cat 0_serial.bak 
tail -F ~/ADMIN/.log/es.log
joy up
env
env </dev/tty1
lsusr
ps auxf | grep emu
txtf es_settings
tail -F ~/ADMIN/.log/es.log
pkill omxplayer
kill -9 $(pgrep omxplayer)
sudo kill -9 $(pgrep omxplayer)
sudo pkill omxplayer
joy up
cd ..
cd screensaver-st
cd screensaver-start
ls -la
sudo rm 0_serial.bak
key f4
send 'emulationstation\r'
cd ..
txt sleep/0_serial.sh 
cd sleep
nano 1_commands.sh
ev-emu 
evemu 
evemu-event
cat 0_serial.sh 
cat 1_commands.sh 
sudo mc
aplay -c 2 -D hw:1,0 ~/ADMIN/FILES/SAMPLES/80s-logo06.wav
tail -F ~/ADMIN/.log/es.log
ls -la
chmod +x 1_commands.sh 
ls -la
txtf es_settings
joy up
key f4
send 'emulationstation\r'
joy up
txtf es_settings
key f4
send 'emulationstation\r'
cd ..
ls -la
txt es_settings.cfg
sudo reboot
cd ADMIN/.log
ls -la
sudo chown pi:pi emulationstation.log 
ls -la
txtf autostart
sudo reboot
cat ADMIN/.log/emulationstation.log 
sudo pkill emulationstation
pgrep emulationstatio 
pgrep emulationstation
pgrep emulationstatio
sudo pkill emulationstatio
cd /opt/retropie/configs/all
ls -la
nano autostart.sh 
sudo reboot
cat ADMIN/.log/emulationstation.log 
cat ADMIN/.log/emulationstation.log | grep BUBBLE
cat ADMIN/.log/emulationstation.log | grep theme
key enter
key space
key enter
txt es_settings.cfg
txtf es_settings
tail -F ~/ADMIN/.log/es.log
sudo mc
cd .emulationstation
cd scripts
cd sleep
ls -la
txt 1
txt 1_commands.sh 
joy up
f4
key f4
send 'emulationstation\r'
tail -F ~/ADMIN/.log/es.log
joy up
key f4
txtf es_settings
bash ~/ADMIN/CMD/SAVER/calc_vid_length.sh 
txtf es_settings
send 'emulationstation\r'
bash ~/ADMIN/CMD/SAVER/calc_vid_length.sh 
tail -F ~/ADMIN/.log/es.log
joy up
sudo mc
key f4
send 'emulationstation\r'
txtf boot
joy up
sudo reboot
tail -F ~/ADMIN/.log/es.log
cd .emulationstation/scripts
nano sleep/0_serial.sh 
txtf sleep
ls -la
txtf sleep
nano sleep/0_serial.sh 
key f4
cd
cd ADMIN/.sys
ls -la
sudo cp .states .states2
cat .states2
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' "$states"
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' states2
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
sudo chown pi:root .states
ls -la
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
sudo chown root:root .states
ls -la
sudo chown pi:root .states2
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
ls -la
sudo chmod 775 .states2
ls -la
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
sudo chown pi:pi .states2
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
cd ..
ls -la
cd
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' ADMIN/.sys/.states2
sudo chown pi:root .sys
sudo chown -R pi:root ADMIN/.sys/
ls -la
cd ADMIN
ls -la
cd .sys
ls -la
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' ADMIN/.sys/.states2
sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
ls -la
cat .states2
sed -i '/ASLEEP/ s/ASLEEP=1/ASLEEP=0/' .states2
cat .states2
sudo sed -i '/ASLEEP/ s/ASLEEP=0/ASLEEP=1/' .states2
cat .states2
cd
cd .emulationstation/scripts
cd sleep
txt 0_serial.sh 
nano 0_serial.sh 
cd ..
nano wake/0_serial.sh 
nano sleep/0_serial.sh 
ls -la
sudo rm sleep2
nano wake/0_serial.sh 
key up
key down
send 'emulationstation\r'
tail -F ~/ADMIN/.sys/.states
tail -F ~/ADMIN/.sys/.states &
tail -F ~/ADMIN/.log/es.log &
sudo reboot
emulationstation
tail -F ~/ADMIN/.sys/.states &
tail -F ~/ADMIN/.log/es.log &
cd .emulationstation
ls -la
cd scriptss

nano sleep/0_serial.sh 
nano wake/0_serial.sh 
ls -la
sudo rm wake2 kill
ls -la
sudo reboot
sudo mc
cd /opt/retropie/configs/all/CRT/bin/ScreenUtilityFiles/bin/service_bgm
ls -la
cp bgm.py bgm.py.bak
ls -la
nano bgm.py
py bgm.py
nano bgm.py
py bgm.py
nano bgm.py
py bgm.py
ls -la /dev/shm
cat /dev/shm/CRT_RGB_Cable.log 
nano bgm.py
py bgm.py
nano bgm.py
py bgm.py
nano bgm.py
ls -la
sudo rm bgm.py
mv bgm.py.bak bgm.py
ls -la
sudo poweroff
echo "0:hello" | cut -d: -f2
echo "hello" | cut -d: -f2
echo ":hello" | cut -d: -f2
txtf serial_log
txtf serial
cd ADMIN/CMD/SERIAL
ls -la
sudo rm 0.2
ls -la
sudo mkdir .BAK
ls -la
sudo mc
ls -la
sudo cp SERIAL.sh SERIAL.sh.bak
txt SERIAL.sh
txtf es_log
alias-edit
reload
txtf es_log
txtf serial_log
txtf states
txtf serial
ls -la /tmp
txtf boot
ls -la /tmp
ls -la ~/ADMIN/.backup/
cd ..
ls -la ~/ADMIN/.backup/
sudo mc
ls -la /tmp
txtf boot
cd
nano testfile
cat testfile 
sed --help
txtf states
cat testfile 
txt testfile 
cat testfile | sed -i '/UI/d'
cat testfile > sed -i '/UI/d'
cat testfile | sed '/UI/d'
cat testfile
cat testfile | sed '/UI/ s/UI=/UI=NEW/'
cat testfile | sed '/UI/ s/UI[=].*$/UI=NEW/'
cat testfile | sed '/UI/ s/UI[=].*$/UI=/'
cat testfile
cat testfile | sed '/UI/ s/UI[=].*$/UI=/'
cat testfile | sed '/UI/ s/UI[=].*$/UI=VAL/'
cat testfile | sed '/UI/ s/UI[=].*$//'
cat testfile | sed '/UI/ s/UI[=].*$/UI/'
var=UI
cat testfile | sed "/$var/ s/$var[=].*$/$var=NEW/"
cat testfile | sed '/UI/ s/UI[=].*$/UI=TERM/'
sed -i '/UI/ s/UI[=].*$/UI=TERM/' testfile
cat testfile
sed -i '/UI/ s/UI[=].*$/UI=RA/' testfile
cat testfile
txtf boot
txtf serial
cd ADMIN/CMD/SERIAL
ls -la
txtf serial
var="1"
[ -n $var ] && echo "DIGIT" || echo "STRING"
var="a"
[ -n $var ] && echo "DIGIT" || echo "STRING"
[[ $var =~ ^[0-9]+$ ]] &&
[[ $var =~ ^[0-9]+$ ]] && echo "DIGIT" || echo "STRING"
var="1"
[[ $var =~ ^[0-9]+$ ]] && echo "DIGIT" || echo "STRING"
echo "0:[[ -n "$var" && -z "${var//[0-9]}" ]] && echo digits || echo not a number
[[ -n "$var" && -z "${var//[0-9]}" ]] && echo digits || echo not a number
var="a"
[[ -n "$var" && -z "${var//[0-9]}" ]] && echo digits || echo not a number"
[[ "$var" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float
[[ "$var" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float || echo string
var="1"
[[ "$var" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float || echo string
var="1.0"
[[ "$var" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float || echo string
var="0:hello"
[[ "${var:1}" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float || echo string
[[ "${var:0}" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float || echo string
echo "${var:0}"
echo "${var:1}"
echo "${var:0:1}"
[[ "${var:0:1}" =~ ^-?[0-9]*[.,]?[0-9]*$ ]] && echo float || echo string
[[ ${var:0:1} =~ ^[0-9]+$ ]] && echo "DIGIT" || echo "STRING"
[[ ${var:0:1} =~ ^[0-9]+$ ]] && echo "${var:0:1}" || echo "STRING"
[[ ${var:1:2} == ':' ]] && echo "delim"
echo "${var:1:2}"
echo "${var:1:1}"
echo "${var:0:1}"
echo "${var:0:0}"
echo "${var:0:1}"
echo $var
echo $var | cut -c2
echo "${var[2]}"
echo "${var[1]}"
printf '%s\n' "${var[1]}"
printf '%s\n' "${var[0]}"
printf '%s\n' "${var[2]}"
printf '%d\n' "${var[1]}"
printf '%d\n' "${var[2]}"
printf '%s\n' "${var[2]}"
echo $var | cut -c2-3
echo $var | cut -c1-2
echo $var | cut -c2
txtf serial
echo $var
echo $var | cut -d: -f1
echo "hello" | cut -d: -f1
echo $var | cut -d: -f1
echo $var
[[ "${var:1:1}" =~ [:] ]] && echo delim
echo ${var:1:1}
echo ${var:0:0}
echo ${var:0:1}
echo ${var:2:2}
echo ${var:2:0}
echo ${var:2:1}
echo ${var:0:1}
echo ${var:1:1}
echo ${var,,}
echo $var
var="0:HEllO"
echo ${var,,}
echo ${var^}
echo ${var^^}
echo $var
echo ${var^^}
var="0:hElLo"
echo ${var^^}
echo ${var^}
var="hElLo"
echo ${var^}
var="HelLo"
echo ${var,}
echo $var
echo ${var:0:1}
var="0:hello"
echo ${var:0:1}
if [[ "${var:1:1}" == ';' ]] && echo delim 
[[ "${var:1:1}" == ';' ]] && echo delim 
echo ${var:1:1}
[[ "${var:1:1}" == ':' ]] && echo delim 
[[ "${var:1:1}" == ':' ]] && [[ "${var:0:1}" =~ ^[0-9]+$ ]] && echo true 
var="a:hello"
[[ "${var:1:1}" == ':' ]] && [[ "${var:0:1}" =~ ^[0-9]+$ ]] && echo true 
[[ "${var:1:1}" == ':' ]] && [[ "${var:0:1}" =~ ^[0-9]+$ ]] && echo true
var="1:hello"
[[ "${var:1:1}" == ':' ]] && [[ "${var:0:1}" =~ ^[0-9]+$ ]] && echo true
txtf serial
var="1:hello"
echo ${var:2}
txtf serial
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh "HELLO"
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh "HELLO"
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh "HELLO"
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh "HELLO"
run SERIAL_TEST.sh ":HELLO"
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh ":HELLO"
run SERIAL_TEST.sh " :HELLO"
txtf sleep
txtf serial
run SERIAL_TEST.sh " :HELLO"
txtf serial
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh " :HELLO"
run SERIAL_TEST.sh "1:HELLO"
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh "1:HELLO"
run SERIAL_TEST.sh "0:HELLO"
run SERIAL_TEST.sh "2:HELLO"
run SERIAL_TEST.sh "9:HELLO"
run SERIAL_TEST.sh "a:HELLO"
txtf serial
txt SERIAL_TEST.sh 
txtf serial
[ -c /dev/ttyACM0 ] && echo found
[ -c /dev/ttyACM1 ] && echo found
txt SERIAL_TEST.sh 
run SERIAL_TEST.sh "0:HELLO"
run SERIAL_TEST.sh "1:HELLO"
txtf boot
cd
sudo grep -R "pyserial.fifo" /
txtf runcmd-start
txtf runcmd-end
txtf boot
txtf serial
txtf runcmd-end
txtf serial
txtf runcmd-end
ls -la ~/RetroPie/roms/mame-libretro/ | grep defend
txtf runcmd-end
txtf cafca
cd CAFCA
ls -la
sudo mc
txtf cafca
ls -la
cd
cd .emulationstation
cd scripts
ls -la
find . -type d 
find . -type d | head -n1
find . -type d | tail -n1
find . -type d | tail -n +2
dirs=($(find . -type d | tail -n +2))
clea
clear
echo ${#dirs}
dirs=($(find . -type d | tail -n +2))
find . -type d | tail -n +2
echo ${#dirs[@]}
for dir in ${#dirs[@]}; do echo "$dir"; done
for dir in ${dirs[@]}; do echo "$dir"; done
for dir in ${dirs[@]}; do cat "$dir/0_serial.sh"; done
sudo mc
cd sleep
ls -la
cat states
sudo rm states
ls -la
cd ..
ls -la
for dir in ${dirs[@]}; do grep "fifo" "$dir/0_serial.sh"; done
cd wake
txt 0_serial.sh 
sudo reboot
ls -la /tmp
txtf cafca_log
cat CAFCA/data/mame-libretro/game_table
cd CAFCA
ls -la cmd
txt .test_dump.sh
txt cmd/.test_dump.sh
txt .test_dump.sh
cd cmd
txt .test_dump.sh
ls -lta cmd
ls -lta
txt .test_scan.sh
txtf cafca_log
key c
tail -F ~/CAFCA/log/CAFCA.log
tail -F ~/CAFCA/log/CAFCA.log &
key s
ls -la
run .test_dump.sh "0x76cb4b8d"
run .test_dump.sh "76cb4b8d"
key c
run .test_dump.sh "76cb4b8d"
key esc
ffg
fg
txtf serial_log
txtf serial
printf '1:LOADED' > /tmp/serial.fifo
printf '0:GAME_LOADED' > /tmp/serial.fifo
printf 'GAME_LOADED' > /tmp/serial.fifo
printf ';' > /dev/ttyACM0
printf 'GAME_LOADED 1;' > /dev/ttyACM0
printf '0:GAME_READY 1' > /tmp/serial.fifo
printf '1:LOADED' > /tmp/serial.fifo
printf '1:UNLOAD' > /tmp/serial.fifo
printf 'UNLOAD;' > /dev/ttyACM1
printf 'UNLOAD' > /dev/ttyACM1
printf 'LOADED' > /dev/ttyACM1
printf 'UNLOAD' > /dev/ttyACM1
printf 'LOADED' > /dev/ttyACM1
printf 'UNLOAD' > /dev/ttyACM1
printf 'LOADED' > /dev/ttyACM1
printf 'UNLOAD' > /dev/ttyACM1
txtf serial
sudo reboot
txtf serial
sudo reboot
printf '0:GAME_LOADED 1' > /tmp/serial.fifo
printf '0:GAME_READY 1' > /tmp/serial.fifo
printf '1:LOADED' > /tmp/serial.fifo
printf '1:UNLOAD' > /tmp/serial.fifo
printf '1:LOADED' > /tmp/serial.fifo
printf '1:UNLOAD' > /tmp/serial.fifo
cat ~/ADMIN/.log/serial.log
ps -ef
fesp
psef
ps -ef | grep serial.sh
ps -ef | grep 1872
pgrep 668
pgrep 1872
ps -ef | grep 668
sudo kill -9 1872
cd ADMIN/CMD/SERIAL
ls -la
txt SERIAL_TEST.sh 
sudo rm SERIAL_TEST.sh 
txt SERIAL.sh
stty -F "/dev/ttyACM0" 9600 raw -echok -icanon -echo  min 0 time 30 && printf "VFD 1 HELLO;" > /dev/ttyACM0; head -n1 /dev/ttyACM0 > >(read response && echo "$response")
stty -F "/dev/ttyACM1" 9600 raw -echok -icanon -echo  min 0 time 30 && printf "HELLO" > /dev/ttyACM0; head -n1 /dev/ttyACM1 > >(read response && echo "$response")
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
run SERIAL_TEST.sh
txt SERIAL_TEST.sh
sudo mkdir ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
sudo mkdir ../.TST/FIFO_QUEUE/
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
cat /tmp/myfifo.fifo
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txtf cafca
txtf runcmd-end
txtf boot
sudo mc
cd 
cd .emulationstation/scripts/
nano sleep/0_serial.sh 
nano wake/0_serial.sh 
grep -RE "*serial.fifo*" /home/pi
alias-edit
reload
cd
cd ADMIN/CMD/SERIAL
ls -la
txt SERIAL_TEST.sh
cat read
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
read --help
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
while read -a -r line; do echo "$line"; done< <(echo -ne "1\n2\n3\n")
while read -a line; do echo "$line"; done< <(echo -ne "1\n2\n3\n")
while read -ar line; do echo "$line"; done< <(echo -ne "1\n2\n3\n")
while read -a line; do echo "$line"; done< <(echo -ne "1\n2\n3\n")
while read -a line; do echo "$line"; done< <(echo -ne "1 \n2 \n3 \n")
while read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n")
IFS_=$IFS; while read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=" " read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS="" read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\b' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\b\r' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\b\r' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\b5 6\r"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\b\r' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\r5 6\r"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\b\r' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -a line; do echo "$line"; done< <(echo -ne "1 2\r3 4\r5 6\r"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\r' read -a line; do echo "$line"; done< <(echo -ne "1 2\r3 4\r5 6\r"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\b' read -a line; do echo "$line"; done< <(echo -ne "1 2\r3 4\r5 6\b"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
echo -e "$IFS"
echo -e "$IFS" | grep -c $'\r'
echo -e "$IFS" | grep -c $'\n'
echo -e "$IFS" | grep -c $'\b'
echo -ne "$IFS" | grep -c $'\n'
echo -ne "$IFS" | wc -c
echo -ne "$IFS" | hexdump
printf '\0920'
printf '\920'
IFS_=$IFS; while IFS=$'\n\n' read -a line; do echo "$line"; done< <(echo -ne "1 2\n3 4\n5 6\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\n' read -a line; do echo "$line"; done< <(echo -ne "1\n2\n3\n4\n5\n6"); IFS=$IFS_
IFS_=$IFS; while IFS= read -a line; do echo "$line"; done< <(echo -ne "1\n2\n3\n4\n5\n6"); IFS=$IFS_
eof=; IFS_=$IFS; while IFS= read -r line || eof=true; do echo "$line"; done< <(echo -ne "1\n2\n3\n4\n5\n6"); IFS=$IFS_
IFS_=$IFS; while IFS='' read -a line; do echo "$line"; done< <(echo -ne "1\n2\n3\n4\n5\n6"); IFS=$IFS_
IFS_=$IFS; while IFS='' read -r line; do echo "$line"; done< <(echo -ne "1\n2\n3\n4\n5\n6"); IFS=$IFS_
IFS_=$IFS; while IFS='' read -r line; do echo "$line"; done< <(echo -ne "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS='' read -r line; do echo "$line"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS='' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=' ' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=' ' read -a line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS= read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while read -a line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n'read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n\09' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n ' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'0x20' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\020' read -r line; do echo -e "$line\n"; done< <(echo -e "1 2 3 4 5 6"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -r line; do echo -e "$line\n"; done< <(echo -e "1\n2\n3\n4\n5\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -a line; do echo -e "$line\n"; done< <(echo -e "1\n2\n3\n4\n5\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -a line; do echo -e "$line"; done< <(echo -e "1\n2\n3\n4\n5\n"); IFS=$IFS_
IFS_=$IFS; while IFS=$'\n' read -r line; do echo -e "$line"; done< <(echo -e "1\n2\n3\n4\n5\n"); IFS=$IFS_
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
sudo mkfifo ../.TST/FIFO_QUEUE/test.fifo
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
echo "HELLO" > ../.TST/FIFO_QUEUE/test.fifo
sudo chown pi:root ../.TST/FIFO_QUEUE/test.fifo
sudo chmod 775 ../.TST/FIFO_QUEUE/test.fifo
echo "HELLO" > ../.TST/FIFO_QUEUE/test.fifo
cat ../.TST/FIFO_QUEUE/test.fifo
cat < ../.TST/FIFO_QUEUE/test.fifo
nano ../.TST/FIFO_QUEUE/test.fifo
wc -l ../.TST/FIFO_QUEUE/test.fifo
sudo rm  ../.TST/FIFO_QUEUE/test.fifo
ls -la
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
read --help
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
read --help
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
echo $IFS | hexdump
echo -n "$IFS" | xxd
IFS=$' \t\n'
echo -n "$IFS" | xxd
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
run ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
txt ../.TST/FIFO_QUEUE/FIFO_QUEUE2.sh
ls -la
sudo rm read
txt SERIAL_TEST.sh 
txt SERIAL.sh 
txt SERIAL2.sh 
cat /tmp/serial.fifo
cat < /tmp/serial.fifo
tail -F < /tmp/serial.fifo &
serial "VFD 0 HELLO"
fg
tail -F /tmp/serial.fifo &
serial "VFD 0 HELLO"
tail -F /tmp/serial.fifo &
serial "VFD 0 HELLO"
fg
cat <> /tmp/serial.fifo > file
ls -la
sudo touch file && sudo chown pi:root file && sudo chmod 775 file
ls -la
cat <> /tmp/serial.fifo > file &
serial "VFD 0 HELLO"
cat file
fg
cat <> /tmp/serial.fifo | read -r input &
echo $input
serial "VFD 0 HELLO"
echo $input
fg
while read line; do echo $line; done< <(cat <> /tmp/serial.fifo) &
serial "VFD 0 HELLO"
cat file
fg
cat <> /tmp/serial.fifo > file &
serial "VFD 0 HELLO" && cat file
fg
cat <> /tmp/serial.fifo > file &
fg
sudo reboot
serial "0:VFD 0 HELLO"
serial "0:VFD 1 HELLO"
serial "1:LOADED"
cat file
cd ADMIN/CMD/SERIAL
ls -la
cat file
read -a arr < /tmp/serial.fifo &
echo ${arr[@]}
echo "${#arr[@]} ${arr[@]}
echo "${#arr[@]} ${arr[@]}"
echo -e "${#arr[@]}\n${arr[@]}"
serial "HELLO"
echo -e "${#arr[@]}\n${arr[@]}"
fg
cat /tmp/serial.fifo
mkfifo /tmp/new.fifo
read -a arr < <(cat /tmp/new.fifo)
fg
rm -r /tmp/new.fifo
mkfifo /tmp/new.fifo
read -a arr < <(cat /tmp/new.fifo) &
echo "HELLO" > /tmp/new.fifo
echo -e "${#arr[@]}\n${arr[@]}"
fg
rm -r /tmp/new.fifo
read -a arr < <(cat <> /tmp/new.fifo > ) & for i in {1..10}; do echo "${arr[@]}" && sleep 1; done
serial "0:VFD 0 HELLO"
serial "0:VFD 1 HELLO"
serial "1:LOADED"
cat file
cd ADMIN/CMD/SERIAL
ls -la
cat file
read -a arr < /tmp/serial.fifo &
echo ${arr[@]}
echo "${#arr[@]} ${arr[@]}
echo "${#arr[@]} ${arr[@]}"
echo -e "${#arr[@]}\n${arr[@]}"
serial "HELLO"
echo -e "${#arr[@]}\n${arr[@]}"
fg
cat /tmp/serial.fifo
mkfifo /tmp/new.fifo
read -a arr < <(cat /tmp/new.fifo)
fg
rm -r /tmp/new.fifo
mkfifo /tmp/new.fifo
read -a arr < <(cat /tmp/new.fifo) &
echo "HELLO" > /tmp/new.fifo
echo -e "${#arr[@]}\n${arr[@]}"
fg
rm -r /tmp/new.fifo
read -a arr < <(cat <> /tmp/new.fifo > ) & for i in {1..10}; do echo "${arr[@]}" && sleep 1; done
fg
declare -a arr=(); (read -a arr< <(cat <> /tmp/new.fifo 2>&1 )) & for i in {1..10}; do echo "${arr[@]}" && sleep 1; done
declare -a arr=(); (read -a arr< <(cat <> /tmp/new.fifo 2>&1 )) & echo "HELLO" > /tmp/new.fifo && for i in {1..10}; do echo "${arr[@]}" && sleep 1; done
rm -r /tmp/new.fifo
mkfifo /tmp/new.fifo
declare -a arr=(); (read -a arr< <(cat <> /tmp/new.fifo 2>&1 )) & echo "HELLO" > /tmp/new.fifo && for i in {1..10}; do echo "${arr[@]}" && sleep 1; done
rm -r /tmp/new.fifo
rm -r /tmp/new.fifo && mkfifo /tmp/new.fifo && sudo chow pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
[ -p /tmp/new.fifo ] &&  rm -r /tmp/new.fifo; sleep 1 &&  mkfifo /tmp/new.fifo && sudo chow pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
[ -p /tmp/new.fifo ] &&  rm -r /tmp/new.fifo; sleep 1 &&  mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
cat <>/tmp/new.fifo > file &
echo "HELLO" > /tmp/new.fifo
cat file
fg
[ -p /tmp/new.fifo ] &&  rm -r /tmp/new.fifo; sleep 1 &&  mkfifo /tmp/new.fifo && sudo chow pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
[ -p /tmp/new.fifo ] &&  rm -r /tmp/new.fifo; sleep 1 &&  mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
cat <>/tmp/new.fifo | while read line; do echo "$line" >> file; done &
cat file
echo "OI" > /tmp/new.fifo
cat file
tail -F file &
echo "OI\nMATE\nHELLO MAN" > /tmp/new.fifo
cat file
fg
ll
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
(sleep 5 && for x in {1..5}; do [ -p /tmp/new.fifo ] && echo "$x" > /tmp/new.fifo; sleep 1; done ) & run SERIAL3.sh
fg
txt SERIAL3.sh
txt SERIAL2.sh
txtf cafca
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
fg
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
num=$(( 1 * RANDOM ))
echo $num
num=$(( 1 * RANDOM ))
echo $num
echo $((1 + $RANDOM % 10))
echo $((1 + $RANDOM % 100))
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
run SERIAL3.sh
txt SERIAL3.sh
sudo mc
cd CMD/.TST
cd .. /.TST
cd ../.TST
ls -la
ls
cd FIFO_QUEUE/
ls -la
txt FIFO_ARRAY.sh 
sudo mc
cd ..
ls -la
cd SERIAL
ls -la
txt SERIAL_.sh
txt SERIAL_TEST.sh.sh
txt SERIAL_TEST.sh
txt SERIAL_.sh
echo "$IFS" | cat -vte
echo "$IFS" | cat -te
txt SERIAL_.sh
ll
txt fifo.sh
echo $((1 + $RANDOM % 100))
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
run fifo2.sh
txt fifo2.sh
txt bg_func.sh
txt fifo2.sh
txt fifo2_2.sh.sh
txt fifo2_2.sh
run fifo2_2.sh
txt fifo2_2.sh
[ -p /tmp/new.fifo ] && rm -r /tmp/new.fifo; sleep 1; mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
cat <>/tmp/new.fifo | while IFS=$'\n' read line; do echo "$line"; done &
echo "1" > /tmp/new.fifo
echo -e "1\n2\n" > /tmp/new.fifo
fg
lines=()
cat <>/tmp/new.fifo | while IFS=$'\n' read line; do echo lines+=("$line"); done &
cat <>/tmp/new.fifo | while IFS=$'\n' read line; do lines+=("$line"); done &
echo -e "1\n2\n" > /tmp/new.fifo
(echo -e "1\n2\n" > /tmp/new.fifo) & sleep 2 && echo "lines: ${lines[@]}"
fg
for i in {1..8}; do echo "$i" > /tmp/new.fifo; done
for i in {1..8}; do echo "$i"; done > /tmp/new.fifo;
fg
for i in {1..8}; do echo "$i"; done
[ -p /tmp/new.fifo ] && rm -r /tmp/new.fifo; sleep 1; mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
for i in {1..8}; do echo "$i"; done > /tmp/new.fifo;
cat <>/tmp/new.fifo | awk '{print NR}'
cat <>/tmp/new.fifo | awk '{print $0}'
[ -p /tmp/new.fifo ] && rm -r /tmp/new.fifo; sleep 1; mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
(for i in {1..8}; do echo "$i"; done > /tmp/new.fifo;) &  cat <>/tmp/new.fifo | awk '{print $0}'
(for i in {1..8}; do echo "$i"; done) > /tmp/new.fifo &  cat <>/tmp/new.fifo | awk '{print $0}'
cat <>/tmp/new.fifo & for i in {1..8}; do echo "$i"; done) > /tmp/new.fifo
cat <>/tmp/new.fifo & (for i in {1..8}; do echo "$i"; done) > /tmp/new.fifo
{while IFS=$'\n' read line; do echo "line: $line"; done< <( cat <>/tmp/new.fifo) } & (for i in {1..8}; do echo "$i"; done) > /tmp/new.fifo
{ while IFS=$'\n' read line; do echo "line: $line"; done< <( cat <>/tmp/new.fifo) } & (for i in {1..8}; do echo "$i"; done) > /tmp/new.fifo
while IFS=$'\n' read line; do echo "line: $line"; done< <( cat <>/tmp/new.fifo) & (for i in {1..8}; do echo "$i"; done) > /tmp/new.fifo
while IFS=$'\n' read line; do echo "line: $line"; done< <( cat <>/tmp/new.fifo) &
[ -p /tmp/new.fifo ] && rm -r /tmp/new.fifo; sleep 1; mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
while IFS=$'\n' read line; do echo "line: $line"; done< <( cat <>/tmp/new.fifo) &
echo "HELLO" > /tmp/new.fifo
echo -e "HELLO\nMATE\nMAN" > /tmp/new.fifo
while IFS=$'\n' read line; do { echo "line: $line"; lines+=("$line"); }; done< <( cat <>/tmp/new.fifo) &
fg
[ -p /tmp/new.fifo ] && rm -r /tmp/new.fifo; sleep 1; mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
while IFS=$'\n' read line; do { echo "line: $line"; lines+=("$line"); }; done< <( cat <>/tmp/new.fifo) &
echo -e "HELLO\nMATE\nMAN" > /tmp/new.fifo
echo "${lines[@]}"
fg
[ -p /tmp/new.fifo ] && rm -r /tmp/new.fifo; sleep 1; mkfifo /tmp/new.fifo && sudo chown pi:root /tmp/new.fifo && sudo chmod 775 /tmp/new.fifo
while IFS=$'\n' read line; do { echo "line: $line"; sleep 5; }; done< <( cat <>/tmp/new.fifo) &
echo -e "HELLO\nMATE\nMAN" > /tmp/new.fifo
fg
ls -la
txt fifo2_2.sh 
SERIAL_.sh
txt SERIAL_.sh
txtf boot
ls -la
txt SERIAL_.sh
ps -ef | grep fifo
sudo rm -r /tmp/serial.fifo
sudo mkfifo /tmp/serial.fifo
run SERIAL_.sh
run SERIAL_.sh &
serial "0:VFD 1 HELLO"
sudo chmod 775 /tmp/serial.fifo
serial "0:VFD 1 HELLO"
sudo chown pi:root /tmp/serial.fifo
echo -e "0:VFD 1 HELLO\n0:VFD"
for i in {0..7}; do echo -e "0:VFD $i HELLO"; done
for i in {0..7}; do echo -e "0:VFD $i HELLO"; done > /tmp/serial.fifo
txt SERIAL_.sh
fg
txt SERIAL_.sh
fg
run SERIAL_.sh & 
run SERIAL_.sh & for i in {0..7}; do echo -e "0:VFD $i HELLO"; done > /tmp/serial.fifo
run SERIAL_.sh & for i in {0..7}; do echo -e "VFD $i HELLO"; done > /tmp/serial.fifo
fg
txtf serial_log
txt SERIAL_.sh
stty -F "/dev/ttyACM0" 9600 raw -echok -icanon -echo  min 0 time 30 && printf "VFD 1 HELLO;" > "/dev/ttyACM0" 
txt RESPONSE.sh
txt SERIAL_.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
txt SERIAL_.sh
txt RESPONSE.sh
txt SERIAL_.sh
run RESPONSE.sh
txt SERIAL_.sh
run RESPONSE.sh
txt SERIAL_.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
txt SERIAL_.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
txt SERIAL_.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
printf '\r\n' | grep -c $'\r' #sed $'s/\r//'
printf '\r\n' | grep -c $'\n' #sed $'s/\r//'
printf '\r\n' | grep -Ec $'\n'|$'\r' #sed $'s/\r//'
printf '\r\n' | grep -c $'\n' #sed $'s/\r//'
printf '\r\n' | sed 's/\r//g; s/\n//g' | grep -c $'\n'
printf '\r\n' | sed 's/\r//g; s/\n//g' | grep -wc $'\n' | grep -wc $'\r' 
printf '\r\n' | grep -wc $'\n' | grep -wc $'\r' 
printf '\r\n' | grep -c $'\n' | grep -c $'\r' 
printf '\r\n' | grep -E $'\n'|$'\r'
printf '\r\n' | grep -E '\n'|'\r'
printf '\r\n' | grep -E $'\n|\r'
printf '\r\n' | grep -Ec $'\n|\r'
printf '\r\n' | grep -E $'\n|\r' 
printf '\r\n' | grep -zcP "\r\r\n" | awk -F: "$2{c++}END{print c}"
printf '\r\n' | grep -zcP "\r\n" | awk -F: "$2{c++}END{print c}"
printf '\r\n' | grep -zcP "\r\n" | awk -F: "$0{c++}END{print c}"
printf '\r\n' | grep -zcP "\r\n" | awk "$2{c++}END{print c}"
printf '\r\n' | grep -zcP "\r\n"
printf '\r\n' | grep -Ec $'\n|\r' | grep -zcP "\r\n"
printf '\r\n' | grep -zcP $'\n|\r'
printf '\r\n' | grep -zcP $'\r'
printf '\r\n' | grep -zcP $'\n'
printf '\r\n' | grep -zcE $'\n'
printf '\r\n' | grep -zcE $'\r'
printf '\r\n' | grep -cE $'\r'
printf '\r\n' | grep -cE $'\n'
grep --help
printf '\r\n\b\0' | grep -cE $'\n'
printf '\r\n\0' | grep -cE $'\n'
printf '\r\n\b' | grep -cE $'\n'
printf '\r\n' | grep -cE $'\n'
printf '\r\n' | grep -cE
printf '\r\n' | grep -cE $'\n|\r'
printf '\r\n' | grep -E $'\n|\r'
printf '\n\r' | grep -E $'\n|\r' | awk -F: '{ if ($2 == " \n") print "found NL!: " else if ($2 == " \r") print "found CR!: " }'
printf '\n\r' | grep -E $'\n|\r' | awk -F: '{ if ($2 == " \n") print "found NL!: "; else if ($2 == " \r") print "found CR!: " }'
printf '\n\r' | grep -E $'\n|\r' | awk -F: '{ if ($2 == " \n") { print "found NL!: "} else if ($2 == " \r") { print "found CR!: "} }'
printf '\n\r' | grep -E $'\n|\r' | awk -F: '{ if ($1 == " \n") { print "found NL!: "} else if ($1 == " \r") { print "found CR!: "} }'
printf '\n\r' | grep -E $'\n|\r' | awk -F: '{ if ($1 == " \\n") { print "found NL!: "} else if ($1 == " \\r") { print "found CR!: "} }'
printf '\n\r' | grep -E $'\n|\r' | awk -F: '{ if ($2 == " \\n") { print "found NL!: "} else if ($2 == " \\r") { print "found CR!: "} }'
printf '\r\n' | awk 'BEGIN{RS="";}/\r\n/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\r/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\n/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\r\n/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\n/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\\n/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\r/{c++;}END{print c}'
printf '\r\n' | awk 'BEGIN{RS="";}/\r\n/{c++;}END{print c}'
printf '\r \n' | awk 'BEGIN[RS=" ";}{if (system("echo \"" $0 "\" | grep -Eq '\n'")) print "NL"}'
printf '\r \n' | awk 'BEGIN{RS=" ";}{if (system("echo \"" $0 "\" | grep -Eq '\n'")) print "NL"}'
printf '\n' | awk 'BEGIN{RS=" ";}{if (system("echo \"" $0 "\" | grep -Eq '\n'")) print "NL"}'
printf '\r \n' | awk 'BEGIN{RS=" ";}{if (system("echo \"" $1 "\" | grep -Eq '\n'")) print "NL"}'
printf '\r \n' | awk 'BEGIN{RS=" ";}{if (system("echo \"" $2 "\" | grep -Eq '\n'")) print "NL"}'
printf '\r \n' | awk 'BEGIN{RS="";}{if (system("echo \"" $2 "\" | grep -Eq '\n'")) print "NL"}'
printf '\r\n' | awk 'BEGIN{RS="";}{if (system("echo \"" $1 "\" | grep -Eq '\n'")) print "NL"}'
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
printf '\r\n' | grep -cE $'\n'
txt RESPONSE.sh
printf '\r\n' |  sed 's/\r//' | grep -cE $'\n'
printf '\r\n' |  sed 's/\n//' | grep -cE $'\n'
printf '\n' | sed 's/\n//' | grep -cE $'\n'
printf '\n' | sed 's/[\n\r]//g' | grep -cE $'\n'
printf '\n' | sed 's/[\n]//g' | grep -cE $'\n'
printf '\n' | sed 's/[\\n]//g' | grep -cE $'\n'
printf '\n' | sed 's/[/\n]//g' | grep -cE $'\n'
printf '\n' | sed 's/[^\n]//g' | grep -cE $'\n'
printf '\n' | sed 's/[^\n]//g' | grep -c $'\n'
printf '\n' | sed 's/[^\n]//g' | grep -c $'\r'
printf '\n' | sed 's/^\n//g' | grep -c $'\n'
printf '\n' | sed 's/\n//g' | grep -c $'\n'
printf '\n' | sed 's/\n//' | grep -c $'\n'
printf '\n\r' | sed 's/\r//' | grep -c $'\r'
printf '\n\r' | sed 's/\n//' | grep -c $'\r'
printf '\n\r' | sed 's/\r+\n//' | grep -c $'\r'
printf '\n\r' | sed 's/\n//g; s/\r//g' | grep -c $'\r'
printf '\n\r' | sed 's/\n//g; s/\r//g' | grep -c $'\r|\n'
printf '\n\r' | sed 's/\n//g; s/\r//g' | grep -c $'\n'
printf '\n\r' | sed 's/\n//g; s/\r//g' | grep -c $'\r'
printf '\n\r' | sed -z 's/\n//g; s/\r//g' | grep -c $'\r'
printf '\n\r' | sed -z 's/\n//g; s/\r//g' | grep -c $'\n'
printf '\r\n' | sed -z 's/\r\n//g; | grep -c $'\n'
printf '\r\n' | sed -z 's/\r\n//g' | grep -c $'\n'
printf '\r\n' | sed -z 's/\r\n//g' | grep -c $'\n|\r'
printf '\r\n\r' | sed -z 's/\r\n//g' | grep -c $'\n|\r'
printf '\r\n' | sed -z 's/\n//g; s/\r//g' | grep -c $'\n'
printf '\r\n' | sed -z 's/\n//g; s/\r//g' | grep -c $'\n|\r'
printf '\r\n\r' | sed -z 's/\n//g; s/\r//g' | grep -c $'\n|\r'
printf '\r\n\n' | sed -z 's/\n//g; s/\r//g' | grep -c $'\n|\r'
printf '\r\n\n' | sed -z 's/\n//g; s/\r//g' | grep -Ec $'\n|\r'
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
cat < /dev/ttyACM1
cat <> /dev/ttyACM1 > /dev/null
run RESPONSE.sh
printf '\n' > /dev/ttyACM1 && cat <> /dev/ttyACM1 > /dev/null
run RESPONSE.sh
printf '\n' > /dev/ttyACM1 && (cat < /dev/ttyACM1) > /dev/null
run RESPONSE.sh
printf '\n' > /dev/ttyACM1 && (cat < /dev/ttyACM1) > /dev/null
run RESPONSE.sh
printf '' > /dev/ttyACM1 && (cat < /dev/ttyACM1) > /dev/null
run RESPONSE.sh
run RESPONSE.sh && (cat < /dev/ttyACM1) > /dev/null
printf '\n' > /dev/ttyACM1 && head -n1 /dev/ttyACM1
printf '\n' > /dev/ttyACM1 && head -n1 /dev/ttyACM1 >/dev/null
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
run RESPONSE.sh
txt RESPONSE.sh
txt SERIAL_.sh
sudo reboot
sudo mc
txtf serial_log
txtf boot
cd ADMIN/CMD/SERIAL
txt SERIAL_.sh
txt RESPONSE.sh
txt SERIAL_.sh
sudo reboot
serial "0:VFD 1 HELLO"
serial "$(echo `date +%F`)"
serial "0:$(echo `date +%F`)"
serial `date`
serial "0:VFD HELLO"
serial "0:VFD 1 HELLO"
serial "0:VFD 1 $(echo `date`)"
serial "0:VFD 1 $(echo `date +%F`)"
serial "0:VFD 1 $(echo `date +%T`)"
serial "0:VFD 1 $(echo `date +%Y\ +%T`)"
serial "0:VFD 1 $(echo `date +%Y\ %T`)"
serial "0:VFD 1 $(echo `date +%D\ %Y\ %T`)"
serial "0:VFD 1 $(echo `date +%d\ %Y\ %T`)"
serial "0:VFD 1 $(echo `date +%d\ %m\ %Y\ %T`)"
serial "0:VFD 1 $(echo `date +%d\/%m\ %Y\ %T`)"
serial "0:VFD 1 $(echo `date +%d\/%m\/%Y\ %T`)"
serial "0:VFD 2 $(echo `date +%d\/%m\/%Y\ %T`)"
serial "0:VFD 2 $(echo `date +%d\/%m\/%y\ %T`)"
serial "0:VFD 3 $(echo `date +%d\/%m\/%y\ %T`)"
serial "0:VFD 4 $(echo `date +%d\/%m\/%y\ %T`)"
serial "0:GAME_LOADED 1" 
serial "0:GAME_READY 1" 
serial "1:LOADED" 
serial "1:UNLOAD" 
serial "0:GAME_STOPPED 1" 
joy up
key left
serial "0:ASLEEP 0"
key up
txtf serka.
txtf serial_æog
txtf serial_log
printf "HELLO^M"
printf "HELLO\^M"
cd ADMIN/CMD/SERIAL
ls -la
txt SERIAL_.sh
sudo reboot
txtf serial_log
txt ~/ADMIN/CMD/SERIAL/SERIAL_.sh
serial "VFD 1 HELLO"
txtf serial_log
sudo reboot
txtf serial_log
txt ~/ADMIN/CMD/SERIAL/SERIAL_.sh
sudo reboot
txtf serial_log
for i in {1..8}; do printf "%3d\n" $i; done
for i in {1..8}; do printf "4%d\n" $i; done
for i in {1..8}; do printf "%4d\n" $i; done
for i in {1..8}; do printf "%04d\n" $i; done
for i in {1..8}; do printf "%03d\n" $i; done
for i in {1..255}; do printf "%03d\n" $i; done
for i in {1..255}; do printf "\%03d\n" $i; done
for i in {1..255}; do printf '\%03d\n' $i; done man ascii | sed -n '/Oct/,/Tables/p' | head -n -2
printf '\07C'
printf '\174'
echo -e "0x7C"
echo -e "\x7C"
txt ~/ADMIN/CMD/SERIAL/SERIAL_.sh
sudo reboot
txtf serial_log
serial "VFD 1 HELLO"
for i in {1..7}; do serial "VFD $i A W E S O M E !"; done
joy up
key f4
sudo reboot
sudo mc
cd .emulationstation/scripts/
nano sleep/0_serial.sh 
cd
backup
cd ADMIN/.backup/
ls -la
cd 2024_05_26_11-25-33/
ls -la
sudo mc
cd /opt/retropie/configs/all/emulationstation/themes/BUBBLEGUM 
sudo df -h
sudo du -sh
cd
sudo du -sh /opt/retropie/configs/all/emulationstation/themes/BUBBLEGUM
sudo du -sh /opt/retropie/configs/all/emulationstation/themes/BUBBLEGUM/auto-favorites/
sudo du -sh /opt/retropie/configs/all/emulationstation/themes/BUBBLEGUM/mame-libretro/
sudo du -sh /opt/retropie/configs/all/emulationstation/themes/BUBBLEGUM/mame/
cd /opt/retropie/configs/all/emulationstation/themes/
sudo mc
sudo du -sh ADMIN/.backup
sudo mc
cd ADMIN/.backup
sudo mkdir .SOURCE
sudo mc
sudo du -sh .SOURCE
sudo mc
backup
sudo mc
backup
if wget --spider "http://www.google.com" 2>/dev/null; then echo FOUND; fi
sudo mc
backup
sftp --help
man sftp
doc sftp
doc man sftp
alias-edit
reload
doc
alias-edit
reload
doc
doc 1
doc write
alias-edit
reload
doc write
alias-edit
reload
doc hello
doc HELLO
alias-edit
reload
doc hello
doc read
doc read file
doc write file
doc read file
doc r file
doc -r file
doc --r file
doc write file
doc w file
doc -w file
doc --w file
doc WRITE file
clear
doc WRITE file
doc W file
doc -W file
doc --W file
alias-edit
sftp --help && echo $?
sftp --help >/dev/null && echo $?
sftp --help
echo $?
sftp --help > /dev/null
sftp --help &> /dev/null
echo $?
man sftp &> /dev/null
echo $?
sftp -h &> /dev/null
echo $?
sftp -H &> /dev/null
echo $?
alias-edit
command -v foo >/dev/null 2>&1 || { echo >&2 "I require foo but it's not installed.  Aborting."; exit 1; }
