Files
public-image-mirror/hack/fmt.sh
2021-12-24 15:42:43 +08:00

4 lines
78 B
Bash
Executable File

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