Need advice about which tool to choose?Ask the StackShare community!
GNU Bash vs Fish Shell: What are the differences?
Developers describe GNU Bash 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. On the other hand, Fish Shell is detailed as "A command line shell intended mostly for interactive use". It is a useful utility filled shell which makes command line operations quicker with customized functions, easy to append path variable command, command history and more right out of the box.
GNU Bash and Fish Shell can be primarily classified as "Shells" tools.
Some of the features offered by GNU Bash are:
- Command line editing
- Unlimited size command history
- Job Control
On the other hand, Fish Shell provides the following key features:
- Autosuggestions
- Scripting
- VGA Color
Fish Shell is an open source tool with 14K GitHub stars and 1.21K GitHub forks. Here's a link to Fish Shell's open source repository on GitHub.
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 Fish Shell
Pros of GNU Bash
- Customizable3
- Powerful scripting language3
- Widely adopted2
- Cross platform0
Sign up to add or upvote prosMake informed product decisions
Cons of Fish Shell
Cons of GNU Bash
- Too Slow1