public-image-mirror/hack/fmt.sh

4 lines
66 B
Bash
Executable File

#!/usr/bin/env bash
cat $1 | sort | tac > $1.tmp && mv $1.tmp $1