Need advice about which tool to choose?Ask the StackShare community!
Erlang vs GNU Bash: What are the differences?
Developers describe Erlang as "A programming language used to build massively scalable soft real-time systems with requirements on high availability". Some of Erlang's uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. OTP is set of Erlang libraries and design principles providing middle-ware to develop these systems. On the other hand, GNU Bash is detailed as "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.
Erlang and GNU Bash are primarily classified as "Languages" and "Shells" tools respectively.
Erlang is an open source tool with 7.75K GitHub stars and 2.1K GitHub forks. Here's a link to Erlang's open source repository on GitHub.
WhatsApp, Heroku, and thoughtbot are some of the popular companies that use Erlang, whereas GNU Bash is used by AgFlow, Clippings, and Lithium Technologies. Erlang has a broader approval, being mentioned in 70 company stacks & 47 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 Erlang
- Real time, distributed applications62
- Concurrency Support62
- Fault tolerance58
- Soft real-time36
- Open source32
- Message passing22
- Functional programming22
- Immutable data16
- Works as expected14
- Facebook chat uses it at backend6
- Practical5
- Knowledgeable community5
- Bullets included4
- WhatsApp uses it at backend1
Pros of GNU Bash
- Customizable3
- Powerful scripting language3
- Widely adopted2
- Cross platform0
Sign up to add or upvote prosMake informed product decisions
Cons of Erlang
- Languange is not popular demand1
Cons of GNU Bash
- Too Slow1