shithub: rc

ref: 03baa934bacdbf48e9e8e94711e6687e6bb1fb30
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а-я