diff --git a/README.rst b/README.rst index 3937ba78d03705bf1bc4c1fc48f1fbf3d8fe95f2..872ab73ae1eddc6254cd3601e9aa6335218eb44b 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ EMBL utilities ``docker_wrap.sh`` - a convenience script to start a container that shares the user's home and creates a user to ensure consistent permissions. -``tabview`` and ``csvview`` - quick preview of tab and csv delimited files. Aligns columns based on content. Works fine with streams and large files. Uses xpipe. Limitations of UNIX's ``column -t`` still apply. +``tabview`` and ``csvview`` - quick preview of tab and csv delimited files. Aligns columns based on content. Works fine with streams and large files. Uses xpipe. ``tabview`` converts tabs to ``¬`` (seldomly used character) to workaround https://github.com/karelzak/util-linux/issues/575 ``xpipe`` - like xargs but for splitting large or infinite streams into chunks and execute commands on them. diff --git a/bin/tabview b/bin/tabview index ec66fbf9694a14f16fcdcee28b9d052ceb8fe937..788f3a3d9c5b597b4a2b7495598481df1c22b084 100755 --- a/bin/tabview +++ b/bin/tabview @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash ## # Preview tab-delimited files regardless of their size # @@ -6,4 +6,4 @@ # Licensed under MIT (https://en.wikipedia.org/wiki/MIT_License) ## -xpipe 'column -t -s" "' -f "$1" | less -S +xpipe 'column -t -s"¬"' -f <(sed 's/\t/¬/g' "$1") | less -S