dotfiles/.bin/sort-wantlib

9 lines
179 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/bin/sh
cat | sed 's/^WANTLIB[[:blank:]+=]*//g' \
| tr ' ' '\n' \
| sort -u \
| fmt -w60 \
| sed 's/^/WANTLIB += /g'
# | sed '1s/^WANTLIB += /WANTLIB = /'