I have the following.
oid=.1.3.6.1.4.1.795.2.5.0.xxx (these 0.xxx represent any random numeral)
I want to do the following
echo $oid | sed (some commands to remove 0.xxx)
and store the resulting string
.1.3.6.1.4.1.795.2.5
in oid.
I don't mind this being done with Grep, awk or sed anything.
Everything before 0.xxx can change only thing static will be 0.
Thanks for your help!