shithub: rc

ref: bb8517e37128598e18c4591e194992c9b56fcf88
dir: /mfmt/

View raw version
#!/bin/rc
pref=$1
fmt=$2
sed \
	$pref^'
	s/^''//
	s/''$//
	s/[\[\]\!,\(\)''\$\*\?:\;=\}\{`]//g
	s/#/♯/g
	s/\&/and/g
	s/( - | |_)/./g
	s/\.[^\.]+$/.'^$fmt^'/
	s/ /./g
	s/\.\.+/./g
' |\
	tr A-ZА-Я a-zа-я