sed

Source

  • simply concatenate the commands with ;

    sed -n 's/\.//g;s/!define VERSION //p' "${0%/*}/setup.nsi"
  • alternatively you could use multiple -e’s

    sed -n -e 's/\.//g' -e 's/!define VERSION //p' "${0%/*}/setup.nsi"
  • the -n option causes sed to only output changed lines (in combination with the p command at the end)