Sign in
mingw
/
mingw-w64
/
4a306baa4a206c9314bdc129e98abfa1aebe2b0e
/
.
/
mingw-w64-crt
/
math
/
DFP
/
mpdecimal-2.3
/
tools
/
replace.sh
blob: 6d6c0dcc12d65421cbabeec5aff7bffec7edab4e [
file
] [
log
] [
blame
]
#!/bin/sh
#
# usage: ./replace name1 name2
#
# In each .c or .h file in the current directory or subdirectory,
# replace all occurrences of name1 with name2.
#
find
.
-
name
'*.[ch]'
-
exec ex
-
c
"%s#$1#$2#g"
-
c
'wq'
{}
\;