Answers for "bash change variable in while loop"

0

bash change variable in while loop

i=1
while read x; do
   i=$(($i + 1))
   echo $i
done <<<$(find tmp -type f)
echo $i
Posted by: Guest on October-29-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language