Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sh script options

$ cat stack.sh 
#!/bin/sh
if  [[ $1 = "-o" ]]; then
    echo "Option -o turned on"
else
    echo "You did not use option -o"
fi

$ bash stack.sh -o
Option -o turned on

$ bash stack.sh
You did not use option -o
Comment

PREVIOUS NEXT
Code Example
Shell :: change wallpaper command line linux 
Shell :: git clone depth 
Shell :: git force lf 
Shell :: Method ReflectionParameter::getClass() is deprecated ubuntu 
Shell :: make pm2 auto-boot at server restart 
Shell :: brew upgrade 
Shell :: install serverless framework 
Shell :: force remove hidden folder in linux 
Shell :: gradle git bash terminal weird characters 
Shell :: git local setup 
Shell :: linux remove link 
Shell :: permissão wordpress 
Shell :: download docker ubuntu 
Shell :: platformio install arduino lib 
Shell :: how to execute a bash script in terminal 
Shell :: store printed output in variable bash 
Shell :: supertest example 
Shell :: rustup uninstall nightly 
Shell :: rsync ssh 
Shell :: how to check requirements.txt was installed correctly 
Shell :: add user sudoers arch 
Shell :: git show staged file contents 
Shell :: create new file in terminal 
Shell :: git Removing Files Only From the Staging Area 
Shell :: remove .env file from git history 
Shell :: enable mods 
Shell :: ubuntu software not showing apps 20.04 
Shell :: bin bash date save file 
Shell :: video not working linux 
Shell :: search for ADS 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =