Last active
March 26, 2016 16:47
-
-
Save nitsas/2429580 to your computer and use it in GitHub Desktop.
while loop, for loop, backticks και ελληνικό ερωτηματικό
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| i="0" | |
| while [ $i -lt 4 ] | |
| do | |
| echo $i | |
| i=$[$i + 1] | |
| done | |
| # alliws mporouses na peis: | |
| # while [ $i -lt 4 ]; do | |
| # echo $i | |
| # i=$[$i + 1] | |
| # done | |
| # to erwtimatiko (kai h nea grammi) xwrizei diaforetikes entoles | |
| # kai tis ektelei ti mia meta tin alli. Mporeis na to xrisimopoiiseis | |
| # ki etsi: | |
| # cd .. ; ls ; echo lalalala | |
| # An baleis mia entoli mesa se backticks ayti ekteleitai kai | |
| # ta apotelesmata tis mpainoun akribws sto simeio pou ypirxe | |
| # h entoli. | |
| # Stin ousia stin epomeni grammi les thelw stin metabliti lala | |
| # ta apotelesmata tis entolis ls -l. | |
| lala=`ls -l` | |
| for [$i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment