cat <<-'EOF' > a.sh
#!/bin/bash
A=$(crsctl stat res -t)
while true; do
B=$(echo "${A}")
A=$(crsctl stat res -t)
echo "${A}"
date;
diff <(echo "${B}") <(echo "${A}")
sleep 30
done
EOF
chmod +x a.sh
cat a.sh
./a.sh
cat <<-'EOF' > a.sh
#!/bin/bash
A=$(crsctl stat res -t)
while true; do
B=$(echo "${A}")
A=$(crsctl stat res -t)
echo "${A}"
date;
diff <(echo "${B}") <(echo "${A}")
sleep 30
done
EOF
chmod +x a.sh
cat a.sh
./a.sh