Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash switch case

case $1 in
start)
    #Start logic
    ;;
stop)
    # Stop logic
    ;;
*)
	# Default logic
    echo $"Usage: $0 {start|stop}"
    exit 1
    ;;
esac
Comment

bash change case

# Basic syntax:
awk '{print tolower(string)}'
awk '{print toupper(string)}'

# Example usage:
awk '{print tolower($0)}' input_file
# This prints every row ($0) converted to lowercase

awk '{print toupper($3)}' input_file
# This would print the third field ($3) converted to uppercase
Comment

PREVIOUS NEXT
Code Example
Shell :: nginx block post files 
Shell :: how to restore a mongodb dump with a new name 
Shell :: debian mongodb 
Shell :: how to install specific package version npm 
Shell :: git overwrite remote files 
Shell :: supertest npm 
Shell :: while bash one line 
Shell :: should mocha and chai be npm installed as dependencies or dev dependencies 
Shell :: uninstall git 
Shell :: scp file download 
Shell :: multiple ssh key 
Shell :: gulp-gzip 
Shell :: how to delete all pods in kubernetes 
Shell :: putty for ubuntu 
Shell :: docker setup 
Shell :: unprotected private key file 
Shell :: Kubernetes configuration file is group readable 
Shell :: get large files 
Shell :: remove .env file from git history 
Shell :: linux vs windows 
Shell :: centos install man pages 
Shell :: open current directory 
Shell :: bash variable execute 
Shell :: get only file names from CMD 
Shell :: install from package.json 
Shell :: speedtest cli 
Shell :: git use cat instead of less 
Shell :: how to append string to file names in linux 
Shell :: nginx create alias 
Shell :: nvim config path 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =