Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh set -eu die() { echo "$*" 1>&2 exit 1 } for fname; do { grep '^#' "$fname" || die "Missing comment line in $fname" grep -v '^#' "$fname" | LC_ALL=C sort } > "$fname.tmp" mv "$fname.tmp" "$fname" done