How to use a bash variable, which holds a value to the below subsequent cells in Data bricks notebook?

VeeraNerella
New Contributor III

%sh

export a

a=100

echo $a

OUTPUT: 100

in the below cell trying to use the variable a, but it's not printing the value

%sh

echo $a

OUTPUT: