---
name: "shtool-table"
section: "1"
platform: "linux"
package: "shtool"
version: "2.0.8-10"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/shtool-table"
---

# shtool-table(1)

GNU shtool pretty-print a field-separated list

## NAME

shtool-table - GNU shtool pretty-print a field-separated list

## SYNOPSIS

**shtool table** \[**-F**\|**--field-sep** *sep*\] \[**-w**\|**--width** *width*\] \[**-c**\|**--columns** *cols*\] \[**-s**\|**--strip** *strip*\] *str***sep***str*...

## DESCRIPTION

This pretty-prints a list of strings as a table.

## OPTIONS

The following command line options are available.

- **-F**, **--field-sep** *sep*

  Separate columns using *sep*. Default is `":"`.

- **-w**, **--width** *width*

  Width of each column. Default is 15 characters.

- **-c**, **--columns** *cols*

  Number of columns. Default is `3`.

- **-s**, **--strip** *strip*

  Strip off any characters past *strip*. Default is `79`.

## EXAMPLE

```
 #   shell script
 shtool table -F , -w 5 -c 4 "1,2,3,4,5,6,7,8,9,10,11,12"
```

## HISTORY

The **GNU shtool** **table** command was originally written by Ralf S. Engelschall \<rse@engelschall.com\> in 1999 for **GNU shtool**.

## SEE ALSO

[**shtool**(1)](/shtool/1.md), [**tr**(1)](/tr/1.md), [**fmt**(1)](/fmt/1.md), [**sh**(1)](/sh/1.md), [**awk**(1)](/awk/1.md), [**sed**(1)](/sed/1.md).
