1
0
mirror of https://github.com/DaoCloud/public-image-mirror.git synced 2025-08-08 04:48:07 +08:00
Files
public-image-mirror/hack/fmt.sh
2023-11-15 15:16:34 +08:00

8 lines
102 B
Bash
Executable File

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