Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#!/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