Source
-
simply concatenate the commands with
;
sed -n 's/\.//g;s/!define VERSION //p' "${0%/*}/setup.nsi"
-
alternatively you could use multiple
-e
’ssed -n -e 's/\.//g' -e 's/!define VERSION //p' "${0%/*}/setup.nsi"
-
the
-n
option causessed
to only output changed lines (in combination with thep
command at the end)