Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash if not

if ! [ $(cat /etc/passwd | grep "sysa") ]; then
        echo "ERROR - The user sysa could not be looked up"
        exit 2
fi
Comment

bash if not

if [[a != b]]; then
	echo "a is not b"
else
	echo "a is the same as b"
fi
Comment

PREVIOUS NEXT
Code Example
Shell :: how to fix There are stopped jobs in bash 
Shell :: add my current project to an already existing GitHub repository 
Shell :: ssh key exchange 
Shell :: Unable to connect to server: connection to server at "localhost" (127.0.0.1), port 5432 failed 
Shell :: interact with docker container shell 
Shell :: zsh read user input 
Shell :: mv folder linux 
Shell :: ubuntu delete all virtual hosts 
Shell :: copy terminal settings ubuntu 
Shell :: open folder in terminal mac 
Shell :: cert manager version 
Shell :: zsh terminal 
Shell :: bash concatenate string variables 
Shell :: how to kill process in linux 
Shell :: rman commands 
Shell :: window reset wifi cmd 
Shell :: linux remove packages 
Shell :: how to move git clone to another git repo 
Shell :: install visual studio on ubuntu command line 
Shell :: change git committed message 
Shell :: instalar webmin ubuntu 20.04 
Shell :: append data to a file with cat command 
Shell :: Add a Remote Repository in git command 
Shell :: git show whole file at commit 
Shell :: kubectl kubernetes port forward 
Shell :: github start 
Shell :: uninstall adobe creative cloud 
Shell :: how to push your code to github 
Shell :: git commit exluding one file 
Shell :: How to concatenate string variables in Bash 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =