Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash split a word into characters

ss="abcdefghi"
my_array=( `echo $ss | grep -o . ` )

echo ${my_array[2]} 

give c

Comment

PREVIOUS NEXT
Code Example
Shell :: jupyter install not running on windows 
Shell :: ubuntu install gnote 
Shell :: git push an existing repo from cmd/bash 
Shell :: ldap query powershell 
Shell :: command not found 
Shell :: git branch -r 
Shell :: linux command to clean up log files 
Shell :: gitlab docker setup 
Shell :: set email and name which gets baked into the every git commit in the local config file found in ./.git/config 
Shell :: delete a github repository using bash 
Shell :: kde up maxfps 
Shell :: generate ssh key in github 
Shell :: install anbox terminal 
Shell :: anaconda install package 
Shell :: bash loading bar spinner in bash shell script 
Shell :: tail journalctl last 100 lines 
Shell :: install composer debian 
Shell :: docker image tar import 
Shell :: npm insall serve globally 
Shell :: how to reset ubuntu 20.04 
Shell :: bash true if grep has output 
Shell :: socket install 
Shell :: shell sort algorithm complexity 
Shell :: Impossible de trouver le paquet php-gettext 
Shell :: ubuntu run a shell script 
Shell :: rust dockerfile 
Shell :: how to remove git from ubuntu 21 
Shell :: how to install cuda on ubuntu 20.04 
Shell :: how to install specific package version npm 
Shell :: error: required key missing from keyring 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =