Need advice about which tool to choose?Ask the StackShare community!
AWK vs Erlang: What are the differences?
AWK: A language for text processing, data extraction and reporting. A data-driven scripting language consisting of a set of actions to be taken against streams of textual data – either run directly on files or used as part of a pipeline – for purposes of extracting or transforming text, such as producing formatted reports; Erlang: 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.
AWK and Erlang belong to "Languages" category of the tech stack.
AWK and Erlang are both open source tools. It seems that Erlang with 7.8K GitHub stars and 2.12K forks on GitHub has more adoption than AWK with 206 GitHub stars and 41 GitHub forks.
WhatsApp, Heroku, and thoughtbot are some of the popular companies that use Erlang, whereas AWK is used by Betaout, itexto, and Datto. Erlang has a broader approval, being mentioned in 88 company stacks & 241 developers stacks; compared to AWK, which is listed in 3 company stacks and 7 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 AWK
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
Sign up to add or upvote prosMake informed product decisions
Cons of AWK
Cons of Erlang
- Languange is not popular demand1