I have a script called foo.sh that contains something like
exec myapp -o size=100m -f
Any idea how to create another script that parses foo.sh and retrieves the value of size? One can assume myapp only appears once in foo.sh, but the order of size argument can appear anywhere in the argument list
Thanks