Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: open gas less example 
Shell :: digital assistant 
Shell :: output current max digital pin 
Shell :: yum install firefox 
Shell :: beanstalk no log in cloudwatch 
Shell :: how to collect values from each iteration of a loop and save them bash 
Shell :: butler push 
Shell :: bash sum floating point numbers 
Shell :: powerrshell adobject get all deleted 
Shell :: linux send process to background and close terminal 
Shell :: copy file from remote node to local 
Shell :: apache virtual host file 
Shell :: Linux Terminal has lost its colours 
Shell :: gradle 6.8 on ubuntu 20.04 
Shell :: return wm_class 
Shell :: docker compose deps 
Shell :: shell relatives path 
Shell :: corrupt history file /home/justicebringer/.zsh_history 
Shell :: get everything before the last / shell 
Shell :: git revert a set of commits 
Shell :: how to log into another linux machine using ip address 
Shell :: how to change expiry date for user linux 
Shell :: Get CB Defense registry 
Shell :: skolen.min 
Shell :: bash pdf merger on mac 
Shell :: proxy ssl certificate to jira centos8 
Shell :: osp it digital solutions 
Shell :: set music cover image linux 
Shell :: clear the log folder in var linux to a max file of 500M 
Shell :: Openstack on ubuntu 18.04 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =