Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

shell script iterate over characters in string

foo=string
for (( i=0; i<${#foo}; i++ )); do
  echo "${foo:$i:1}"
done
Comment

PREVIOUS NEXT
Code Example
Shell :: bash regex if condition 
Shell :: remove port iptables 
Shell :: how to check user in group linux 
Shell :: datatable npm install 
Shell :: linux kill aport 
Shell :: set time in kali linux 
Shell :: apple logo in terminal 
Shell :: Adding local user to Docker group 
Shell :: find linux 
Shell :: Kubectl get memory usage of pod 
Shell :: how to kill process 
Shell :: find files size greater than 100mb in linux 
Shell :: how to deploy to netlify using git bash 
Shell :: batch file comment after command 
Shell :: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/pgdg.list:1 and /etc/apt/sources.list.d/pgdg.list:2 
Shell :: git merge branch to master command line 
Shell :: bash upgrade cmake (From Source) 
Shell :: Creating a new Laravel application 
Shell :: wget file from google drive 
Shell :: cmp in linux 
Shell :: change remote origin git 
Shell :: extract rar linux 
Shell :: gh ubuntu 
Shell :: run mongodb locally 
Shell :: brew install node sass 
Shell :: see output of a running processes linux 
Shell :: install teamviewer ubuntu 18 
Shell :: You need to have the Android SDK Build-tools installed on your system 
Shell :: print grep output in one line 
Shell :: generate git ssh key 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =