Need advice about which tool to choose?Ask the StackShare community!
GNU Bash vs Markdown: What are the differences?
GNU Bash: Functional improvements over sh for both programming and interactive use. The Bourne Again SHell is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard; Markdown: Text-to-HTML conversion tool/syntax for web writers, by John Gruber. Markdown is two things: (1) a plain text formatting syntax; and (2) a software tool, written in Perl, that converts the plain text formatting to HTML.
GNU Bash can be classified as a tool in the "Shells" category, while Markdown is grouped under "Languages".
reddit, StackShare, and Asana are some of the popular companies that use Markdown, whereas GNU Bash is used by AgFlow, Clippings, and Lithium Technologies. Markdown has a broader approval, being mentioned in 756 company stacks & 718 developers stacks; compared to GNU Bash, which is listed in 40 company stacks and 73 developer stacks.
If you have a file (demo.txt
) that has 3 columns:
Column-1 Column-2 Column-3
Row-1a Row-2a Row-3a
Row-1b Row-2b Row-3b
Row-1c Row-2c Row-3c
Row-1d Row-2d Row-3d
Row-1e Row-2e Row-3e
and you want to only view the first column of the file in your CLI, run the following:
awk {'print $1'} demo.txt
Column-1
Row-1a
Row-1b
Row-1c
Row-1d
Row-1e
If you want to print the second column of demo.txt
, just replace $1
with $2
Pros of GNU Bash
- Customizable3
- Powerful scripting language3
- Widely adopted2
- Cross platform0
Pros of Markdown
- Easy formatting345
- Widely adopted246
- Intuitive194
- Github integration132
- Great for note taking41
- Defacto GitHub lingo2
Sign up to add or upvote prosMake informed product decisions
Cons of GNU Bash
- Too Slow1
Cons of Markdown
- Cannot centralise (HTML code needed)2
- Inconsistend flavours eg github, reddit, mmd etc1
- Limited syntax1
- Not suitable for longer documents1
- Non-extensible1
- No right indentation1
- No underline1
- Unable to indent tables1