Joined October 2013
·

Grigory

spb
·
·
·

Be aware of the fact that while loop will be executed in a subshell.
For example:

CNT=0
ls -1 | while read file
do
  CNT=$((CNT+1))
done
echo $CNT

Output will be zero

Achievements
52 Karma
596 Total ProTip Views