been reading up on the sed command in Unix and I think it will do what I want it to, just not sure on its crazy syntax.
Basically, I want to get just the value inside brackets after Count= in the last line of a file. So, in the line there will be a Count=[#] and I want just the # to be returned. Any thoughts? Is sed even the best choice (heard awk might do something similar)?
A slightly different approach:
This matches the text between the
[and], and replaces the entire line with it.