shithub: rc

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