how to export variable from shell script using source code example Example: export variable bash $ export MYVAR=1729 $ echo $MYVAR 1729