Codebase list libmawk / 0718135d-034f-4c7d-a50d-81acb9b0d835/main tools / rename.sh
0718135d-034f-4c7d-a50d-81acb9b0d835/main

Tree @0718135d-034f-4c7d-a50d-81acb9b0d835/main (Download .tar.gz)

rename.sh @0718135d-034f-4c7d-a50d-81acb9b0d835/main

b761e9e
 
 
 
 
 
 
 
 
 
 
 
 
 
#!/bin/sh

for n in *.h *.c *.y
do
	case $n in 
		parse.c) ;;
		mawk.h);;
		*)
			mv $n $n.old
			sed "s/\([^A-Za-z_>]\)$1/\1mawk_$1/g;s/^$1/mawk_$1/" < $n.old > $n
			rm -f $n.old
			;;
	esac
done