Need advice about which tool to choose?Ask the StackShare community!

Fish Shell

80
99
+ 1
0
GNU Bash

1.3K
707
+ 1
8
Add tool

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.

Decisions about Fish Shell and GNU Bash
Justin Dorfman
Open Source Program Manager at Reblaze · | 1 upvote · 79.6K views

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

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Fish Shell
Pros of GNU Bash
    Be the first to leave a pro
    • 3
      Customizable
    • 3
      Powerful scripting language
    • 2
      Widely adopted
    • 0
      Cross platform

    Sign up to add or upvote prosMake informed product decisions

    Cons of Fish Shell
    Cons of GNU Bash
      Be the first to leave a con
      • 1
        Too Slow

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is Fish Shell?

      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.

      What is GNU Bash?

      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.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use Fish Shell?
      What companies use GNU Bash?
      See which teams inside your own company are using Fish Shell or GNU Bash.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with Fish Shell?
      What tools integrate with GNU Bash?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to Fish Shell and GNU Bash?
      iTerm2
      A replacement for Terminal and the successor to iTerm. It works on Macs with macOS 10.12 or newer. iTerm2 brings the terminal into the modern age with features you never knew you always wanted.
      Shell
      A shell is a text-based terminal, used for manipulating programs and files. Shell scripts typically manage program execution.
      PowerShell
      A command-line shell and scripting language built on .NET. Helps system administrators and power-users rapidly automate tasks that manage operating systems (Linux, macOS, and Windows) and processes.
      IPython
      It provides a rich architecture for interactive computing with a powerful interactive shell, a kernel for Jupyter. It has a support for interactive data visualization and use of GUI toolkits. Flexible, embeddable interpreters to load into your own projects. Easy to use, high performance tools for parallel computing.
      Zsh (Z shell)
      An interactive login shell, command interpreter and scripting language.
      See all alternatives