Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash add options to script

$ 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 :: join rows in one string linux 
Shell :: formatear usb desde terminal linux 
Shell :: flutter Error when communicating with the Firebase Installations server API. HTTP response 
Shell :: Problem with MergeList /var/lib/apt/lists/developer.download.nvidia.com_compute_cuda_repos_ubuntu2204_x86%5f64_Packages 
Shell :: open Edge with terminal 
Shell :: Wait for Android emulator to be running before next shell command 
Shell :: git: Download specific file from Github website 
Shell :: Running shell scripts 
Shell :: Command for installing sha256 hashing algorithm 
Shell :: How to use very_good_cli in flutter 
Shell :: Command used to show the content stored inside a file in linux 
Shell :: locate path software 
Shell :: what is the difference between npm uninstall and remove 
Shell :: redirect batch file output 
Shell :: vim sensible linux 
Shell :: cut command in powershell windows 
Shell :: fedora server connect to wifi 
Shell :: mysql cannot change directory to /nonexistent 
Shell :: modify read only file 
Shell :: bash script to checker credentials 
Shell :: command to compare the content of files 
Shell :: docker Redirecting Both stdout and stderr file 
Shell :: change local Git email address to match GitHub account email 
Shell :: yarn gem 
Shell :: retrieve column from csv unix 
Shell :: how to update github cil on windows 
Shell :: thunderbird refresh emails shortcut 
Shell :: fix low battery life windows 
Shell :: Copying Folder to Server 
Shell :: Remove any previous Go installation 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =