diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-01-17 23:22:22 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-01-17 23:22:22 +0100 |
commit | 6ab4d0859f32d96af2b39a95d943ffeab0d4d713 (patch) | |
tree | 5ce9030556dfa6124e94209cb0dbf1b07e3d8eb1 /src/tools/column.md | |
parent | 811addc3919f9b9ec1e838920f1e2d791a1e5595 (diff) | |
download | notes-6ab4d0859f32d96af2b39a95d943ffeab0d4d713.tar.gz notes-6ab4d0859f32d96af2b39a95d943ffeab0d4d713.zip |
column: add example to format data as table
Diffstat (limited to 'src/tools/column.md')
-rw-r--r-- | src/tools/column.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/column.md b/src/tools/column.md new file mode 100644 index 0000000..4a3b2c4 --- /dev/null +++ b/src/tools/column.md @@ -0,0 +1,10 @@ +# column(1) + +## Examples +```sh +# Show as table (aligned columns), with comma as delimiter from stdin. +echo -e 'a,b,c\n111,22222,33' | column -t -s ',' + +# Show file as table. +column -t -s ',' test.csv +``` |