readded udpated scripts directory

This commit is contained in:
tomit4 2022-06-09 12:59:03 -07:00
parent cd053a412a
commit f3117c81d9
84 changed files with 3210 additions and 0 deletions

21
scripts/rpl Executable file
View file

@ -0,0 +1,21 @@
#!/bin/sh
#
# rpl: rpl str1 in files with str2, in place
PATH=/bin:/usr/bin
case $# in
0|1|2) echo 'Usage: replace str1 str2 files' 1>&2; exit 1
esac
left="$1"; right="$2"; shift; shift
for i # same as for $*
do
/home/brian/scripts/overwrite $i sed "s@$left@$right@g" $i
done
# $ cat footnote
# UNIX is not an acronym
# $ rpl UNIX Unix footnote
# Unix is not an acronym