Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash for loop multiple statements

# Basic syntax:
for i in a b; do echo $i; printf "$i	$i
"; done
# Where:
#	- each command in the for loop needs to be separated by semicolons. Here
#		we echo $i and then print $i<tab>$i<newline>
#	- over several lines this would be equivalent to:
for i in a b
do
  echo $i
  printf "$i	$i
"
done
Comment

bash two for loops

for i in 0 1 2 3 4 5 6 7 8 9
do
    for j in 0 1 2 3 4 5 6 7 8 9
    do 
        echo "$i$j"
    done
done
Comment

PREVIOUS NEXT
Code Example
Shell :: import single table from mysql dump 
Shell :: django start project in existing directory 
Shell :: search a tag git 
Shell :: c# powershell 
Shell :: linux command to open a file 
Shell :: raspberry pi headless 
Shell :: bower uninstall 
Shell :: how to put a youtube video in github description 
Shell :: error when i install sass 
Shell :: gunicorn 
Shell :: bash read 
Shell :: hobo list services 
Shell :: update gradle version command line 
Shell :: install spark 2.4.0 on ubuntu 
Shell :: delete empty pdf page 
Shell :: unzip recursively linux 
Shell :: pull master into branch 
Shell :: saving fonts on linux for figma 
Shell :: know committed files by author 
Shell :: install watchman on linux 
Shell :: git exit commit message 
Shell :: stern install mac 
Shell :: how to chekc jupyter lab version 
Shell :: how delete wireless connection raspberry pi terminal 
Shell :: Install Deno - Homebrew (Mac) 
Shell :: Got socket error trying to find package cupertino_icons at https://pub.dartlang.org. 
Shell :: run index.js 
Shell :: chnage localhost folder xampp on ubuntu 
Shell :: linux download from google drive private file 
Shell :: libracad ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =