shithub: rc

ref: a3bcc11ddec06f173669f02e3c6b6fb290957196
dir: /bin/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а-я