#!/bin/sh g=`cat custom.js | egrep -o 'g="[[:digit:]]+"'` echo $g
$ sh testcustom.sh g="67546047032498743643784327893489"