for i in *.c; do
mv $i $i.orig
sed 's/send_to_char/sendch/g' <$i.orig >$i
done
find . -type f | xargs perl -pi -e 's/Original/New/g'
perl -pi -e 's/send_to_char/sendch/g' *.c
$ ruby -p -i.bak -e '$_.gsub!(/send_to_char/,"sendch")' *.[ch]
-e:1: syntax error, unexpected tSTRING_BEG, expecting $end
$_.gsub!(/send_to_char/,"sendch")"act.comm.c
ruby -pe 'gsub(/send_to_char/, "sendch")' < *.c
ruby -pe 'gsub(/send_to_char/, "sendch")' < *.c
$ ruby -pe 'gsub(/send_to_char/, "sendch")' < *.c
-bash: *.c: ambiguous redirect
#config {wordwrap} {off}
#substitute {send_to_char} {sendch}
#script {files} {ls *.c}
#foreach {$files[%*]} {file}
{
#buffer clear;
#scan $file;
#buffer write $file
}
for meh in *.c; do
ruby -pe 'gsub(/send_to_char/, "sendch")' < $meh
done
ruby -pe 'gsub(/send_to_char/, "sendch")' < *.c
for f in *.c ; do_something $f
ruby -pe 'gsub(/send_to_char/, "sendch")' < *.c
for f in *.c ; do_something $f
$ ruby -p -i.bak -e '$_.gsub!(/send_to_char/,"sendch")' *.[ch]
-e:1: syntax error, unexpected tSTRING_BEG, expecting $end
$_.gsub!(/send_to_char/,"sendch")"act.comm.c
I imagine there could be a recursive command, but I haven't found any online.
An example would be something like:
I imagine there might be some app I could get.