Last active
June 3, 2026 12:33
-
-
Save lubianat/c74e867205b9b0b738b13e83e6ab1210 to your computer and use it in GitHub Desktop.
TSV to Markdown in the Terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add to ~/.bashrc or ~/.zshrc | |
| alias tsv2md='f(){ awk -F"\t" '\''{printf "| "; for(i=1;i<=NF;i++) printf "%s%s", $i, (i<NF?" | ":" |\n")} NR==1{printf "|"; for(i=1;i<=NF;i++) printf " --- |"; printf "\n"}'\'' "$1"; }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment