mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
7 lines
310 B
Bash
7 lines
310 B
Bash
|
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"
|