Skip to content

Instantly share code, notes, and snippets.

@Xvezda
Created January 17, 2021 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xvezda/d2ab19ba9226d550a1f79285be45b9a8 to your computer and use it in GitHub Desktop.
Save Xvezda/d2ab19ba9226d550a1f79285be45b9a8 to your computer and use it in GitHub Desktop.
COLUMN(1) to MarkDown table with SED(1)
#!/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