Plan 9 from Bell Labs’s /usr/web/sources/contrib/btdn/src/invfo.rc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# Copyright © 2007 Benjamin T. D. Newman.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this work to deal in this work without restriction (including the
# rights to use, modify, distribute, sublicense, and/or sell copies).
#
# Disclaimer: This work is provided as is and without warranty of any kind.

# Inventory Plan 9 troff(1) fonts

dir=/sys/lib/troff/font/devutf/
files=`{ls -p $dir | awk '{print}' 'ORS= '}

fn getfo{
	echo -n $1: 
	grep fontname $dir/$1 | sed -e s/fontname// || echo ' not a font file'
}

for(i in $files) getfo $i | grep -v 'not a font file'

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.