DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash change variable in while loop
i=1 while read x; do i=$(($i + 1)) echo $i done <<<$(find tmp -type f) echo $i
PREVIOUS
NEXT
Tagged:
#bash
#change
#variable
#loop
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit