Sign in
mingw
/
mingw-w64
/
c87b300afbd45bbab91b3dd3dceeca3fba828f3a
/
.
/
mingw-w64-crt
/
math
/
DFP
/
mpdecimal
/
tools
/
replace.sh
blob: c90eb2543e80f1ba5c568123d2193de316af574a [
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'
{}
\;