public-image-mirror/hack/fmt.sh

4 lines
78 B
Bash
Executable File

#!/usr/bin/env bash
cat $1 | sort -u | grep -v '^$' > $1.tmp && mv $1.tmp $1