LinuxCommandLibrary

figlist

List available figlet fonts

TLDR

List all available fonts using the default font directory

$ figlist
copy

List fonts from a custom directory
$ figlist -d [path/to/directory]
copy

Search for a font by keyword
$ figlist -d [path/to/directory] | grep [keyword]
copy

Count the total number of available fonts in a specified directory
$ figlist -d [path/to/directory] | wc [[-l|--lines]]
copy

SYNOPSIS

figlist

DESCRIPTION

The `figlist` command is a utility provided with the Grace (formerly known as Xmgr) plotting tool. It allows users to list the active figures currently open within a running Grace instance. This is helpful for identifying and managing multiple plots or graphical representations created using Grace. The command will typically print a list to standard output, where each line represents a Grace figure number. This can be useful for scripting, where you need to interact with specific Grace figures programmatically. It simplifies finding the figure number which helps target specific figures. Note that `figlist` needs a running Grace instance to operate correctly.

CAVEATS

This command relies on a running Grace instance and Grace has to be setup correctly. It outputs figure numbers to stdout only.

USAGE EXAMPLES

Example 1: To list all active figures, simply run:
figlist

Example 2: To capture the output to a file:
figlist > figures.txt
The figures.txt file will now contain a list of active figure numbers.

SEE ALSO

grace(1)

Copied to clipboard