BSD seq(1) on Linux

.

  tnftp -4o /dev/stdout \
  ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/usr.bin/seq/seq.c \
  |sed '
   /ifndef lint/,/endif .. not lint/d;
   /cdefs/d;/inttypes/d;
   s/getprogname()/\"seq\"/
   ' \
  |cc -static -s -xc /dev/stdin -o seq

Comments