Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash string ends with

function f {
    if [[ "$1" == *.cpp ]]
    then echo "end with .cpp";
    else echo "this file isnt a cpp file"
    fi
}
Comment

PREVIOUS NEXT
Code Example
Shell :: merge branch into master 
Shell :: git fetch all after --single-branch 
Shell :: git stash 
Shell :: spaceship theme zsh 
Shell :: golang compile with injected variable 
Shell :: uninstall appx 
Shell :: command to return to old shell 
Shell :: close adb server 
Shell :: linux find location of executable 
Shell :: grep exclude multi dirs 
Shell :: how to clear terminal in linux 
Shell :: run appimage apps on arch linux 
Shell :: xargs example with curl 
Shell :: shell count number of columns 
Shell :: linux get part of string 
Shell :: linux list recursive 
Shell :: ansible skip tag 
Shell :: run sh not a command mac 
Shell :: java.util.concurrent.ExecutionException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: INSTALL_FAILED_VERSION_DOWNGRADE: Package Verification Result 
Shell :: install serial port using npm 
Shell :: docker-proxy port 80 
Shell :: basic git commands 
Shell :: how to remove file from directory in linux 
Shell :: nvmrc 
Shell :: how can i solve my problems? 
Shell :: linux how to execute a file 
Shell :: comment installer tar.gz 
Shell :: touch command in windows 
Shell :: pull branch from github 
Shell :: folder open command in linux 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =