Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

concat strings inside array bash script

List="A B C D"
for I in $List
do
    OUT=${OUT:+$OUT }-$I
done
Comment

PREVIOUS NEXT
Code Example
Shell :: permissions do not allow pasting files in this directory 
Shell :: install neovim 7 in ubuntu 
Shell :: Everything up-to-date git push origin main 
Shell :: show git branch on terminal on mac 
Shell :: dconf command not found 
Shell :: download fbreader for ubuntu 
Shell :: ubuntu 22.04 server list services 
Shell :: expo uninstall package 
Shell :: if float less than bash 
Shell :: cherry pick 
Shell :: c compiler with working fork 
Shell :: better wget 
Shell :: how to set gopath/bin linux 
Shell :: unity progrids git url 
Shell :: linux scp 
Shell :: git untag 
Shell :: how to find zero byte files 
Shell :: mariadb delete database 
Shell :: heroku push non master branch 
Shell :: git pull on branch 
Shell :: bash add user to group 
Shell :: create a doxygen config file 
Shell :: npm windows error 
Shell :: enter 1 digit max number field 
Shell :: bash keyboard shortcuts 
Shell :: setup commandline vscode in mac 
Shell :: git checkout -f 
Shell :: grep last instance 
Shell :: kubernetes get node taints 
Shell :: install vim linux 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =