Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

if there is a string in a file batch

>nul find "Hello World" log.txt && (
  echo "Hello World" was found.
) || (
  echo "Hello World" was NOT found.
)
Comment

PREVIOUS NEXT
Code Example
Shell :: gtk4 windows install 
Shell :: uninstall nvidia x server ubuntu 
Shell :: git new branch 
Shell :: install node package globally 
Shell :: git revert all commits to pervious commit 
Shell :: zip command line 
Shell :: linux append to file 
Shell :: docker load 
Shell :: install cp in windows cmd 
Shell :: npm insall serve globally 
Shell :: yarn react install 
Shell :: delete a file in linux 
Shell :: check gcp disk space usage 
Shell :: valgrind usage 
Shell :: refusing to merge unrelated git 
Shell :: push docker image to docker hub 
Shell :: change wallpaper command line linux 
Shell :: git switch 
Shell :: force remove a hidden folder in linux 
Shell :: git local setup 
Shell :: Backup Restore and Upgrade Gitlab 
Shell :: powershell copy-item specify credentials 
Shell :: how to execute a bash script in terminal 
Shell :: install vuex orm 
Shell :: aos animate install 
Shell :: docker auto start when reboot 
Shell :: github add all files/directories and subdirectories 
Shell :: echo in red color linux 
Shell :: install google assistant on linux 
Shell :: reset certain file git 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =