m2 0.0.0

Set of Unix tools to work with m2dirs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

trim_string() {
	(
		input=$(cat)
		trim="${input#"${input%%[![:space:]]*}"}"
		trim="${trim%"${trim##*[![:space:]]}"}"
		printf '%s\n' "$trim"
	)
}

m2part "$@" |
	tr -d '\r' |
	trim_string |
	fmt -s -p '> ' -w 78 |
	sed 's/^/> /; s/^> >/>>/'