Skip to content
Snippets Groups Projects
Verified Commit deef779c authored by Renato Alves's avatar Renato Alves :seedling:
Browse files

ENH Workaround tab-delimited alignment issues

parent f967a1a2
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment