Answers for "bash toggle script"

0

bash toggle script

#!/bin/sh
# This shell script is PUBLIC DOMAIN. You may do whatever you want with it.

TOGGLE=$HOME/.toggle

if [ ! -e $TOGGLE ]; then
    touch $TOGGLE
    command1
else
    rm $TOGGLE
    command2
fi
Posted by: Guest on November-05-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language