I have a file that has this line in it:
$n22(s:Tstring) = "252";
I'm trying to write a shell command to grep the file and only return 252. This is what I have so far:
grep -o '$n22(s:Tstring).*;' /etc/test/testfile.cfg
$n22(s:Tstring) = "252";
As you can see, it finds the line, but it returns everything. I just want 252. Can you tell me where I'm going wrong pls?
Thanks