820e69dcc0
Same functionality, same method, simpler exposition.
8 lines
120 B
Bash
Executable File
8 lines
120 B
Bash
Executable File
#!/bin/sh
|
|
|
|
for F
|
|
do
|
|
{ grep '^#' "${F}"; grep -v '^#' "${F}" | LC_ALL=C sort ;} > "${F}".tmp
|
|
mv "${F}".tmp "${F}"
|
|
done
|