tornado-nova/scripts/changeTreeHeight.sh
2021-10-18 12:26:37 +03:00

7 lines
310 B
Bash
Executable File

case $(sed --help 2>&1) in
*GNU*) sed_i () { xargs sed -i "$@"; };;
*) sed_i () { xargs sed -i '' "$@"; };;
esac
grep -l --exclude-dir={.git,node_modules,artifacts,contracts} -r "component main = Transaction([0-9]*," . | sed_i "s/component main = Transaction([0-9]*,/component main = Transaction(${1},/g"