#!/bin/bash sed '2s/0\.7\.0/0.6.12/g' lib/v3-core/contracts/libraries/LowGasSafeMath.sol > lib/v3-core/contracts/libraries/LowGasSafeMath.sol.temp rm lib/v3-core/contracts/libraries/LowGasSafeMath.sol # Too busy to read up on how I can not fuck up by overwriting file with sed right now mv lib/v3-core/contracts/libraries/LowGasSafeMath.sol{.temp,}