Created
January 17, 2021 23:54
-
-
Save Xvezda/d2ab19ba9226d550a1f79285be45b9a8 to your computer and use it in GitHub Desktop.
COLUMN(1) to MarkDown table with SED(1)
This file contains 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
#!/bin/bash | |
sed -e 's/[[:space:]][[:space:]]\([^[:space:]]\)/ \| \1/g' -e 's/^/\| /' -e 's/$/ \|/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment