Font path listing bash script for xorg.conf

FreeBSD 11 here. knoba – XFontPaths.sh – 2016 (link below)
knoba - font path listing bash script for xorg.conf

~§~

Output file.
knoba - font path listing bash script for xorg.conf

~§~

File attributes (-rwxr-x—) “sh XFontPaths.sh” to execute.
knoba - font path listing bash script for xorg.conf

~§~

#!/bin/sh

ls -d /usr/local/share/fonts/*/ > ~/fontpath.txt;
sed -e 's/^/zFontPath "/' ~/fontpath.txt > ~/afontpath.txt;
tr 'z' '\t'  ~/bfontpath.txt;
sed -e "s|$|\"|" ~/bfontpath.txt > ~/xfontpath.txt


rm ~/fontpath.txt;
rm ~/afontpath.txt;
rm ~/bfontpath.txt;

~§~

FreeBsd – Unix-like operating system

Debian – Linux operating system

GNU – Operating system & software

knoba – XFontPaths.sh – 2016

•••