Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell if string contains

$strVal ='Hello world'
if($strVal -like '*World*') {
      Write-Host 'Your string contains the word world'
} else {
      Write-Host 'Your string does not contains the word world'
}
Comment

powershell if string contains

$strVal ='Hello world'
if($strVal -like '*World*') {
      Write-Host 'Your string contains the word world'
} else {
      Write-Host 'Your string does not contains the word world'
}
Comment

PREVIOUS NEXT
Code Example
Shell :: Failed to start Redis In-Memory Data Store. 
Shell :: bash display items in array 
Shell :: git push existing repo 
Shell :: install nginx 
Shell :: uninstall vscode ubuntu 
Shell :: vlc media player download ubuntu 
Shell :: docker start all containers 
Shell :: install cubecoders amp 
Shell :: checklist github readme 
Shell :: busy port 
Shell :: shebang unix 
Shell :: locale setting linux 
Shell :: docker clear container logs 
Shell :: set git pull rebase default 
Shell :: cleaning up your ubuntu system 
Shell :: scikit learn pip 
Shell :: black webbrowser 
Shell :: install pyqt4 ubuntu 
Shell :: range of random numbers bash 
Shell :: macos start avd cmd 
Shell :: error: The following untracked working tree files would be overwritten by merge: .DS_Store .gitignore Please move or remove them before you merge. 
Shell :: artisan migration rollback 
Shell :: ubuntu install bluetooth drivers 
Shell :: bash script print array elements index and value 
Shell :: updating git 
Shell :: composer install drupal drush 
Shell :: git see all tracked files 
Shell :: yarn version 
Shell :: bash return specific lines from history 
Shell :: elastic beanstalk installation command on cli 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =