PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Bash

Bash

Bash is a pl created in 1989 by Brian Fox.

#52on PLDB 33Years Old 61.7kUsers
33Books 1Papers 2mRepos

Try now: Riju · TIO

Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell. First released in 1989, it has been distributed widely as the default login shell for most Linux distributions and Apple's macOS (formerly OS X). A version is also available for Windows 10. Read more on Wikipedia...


Example from Riju:
echo "Hello, world!"
Example from hello-world:
#!/bin/sh echo "Hello World"
Example from Linguist:
#!/bin/sh echo "sh"
Example from Wikipedia:
cd "$SOMEWHERE" && ./do_something || echo "An error occurred" >&2

Keywords in Bash

if then do else elif while until for in esac fi fin fil done exit set unset export function

Language features

Feature Supported Example Token
Conditionals
Functions
While Loops
File Imports
source ./bash.sh
Assignment
FOO="bar"
=
Print() Debugging
echo "Hello World"
echo
Pipes
echo "Hello world" > output.txt
Integers
PLDB=80766866
Strings
"Hello world"
"
Line Comments
# A comment
#
Comments
# A comment
Sets ϴ
MultiLine Comments ϴ
Semantic Indentation ϴ
Units of Measure ϴ

Books about Bash from ISBNdb

title authors year publisher
Learning the bash Shell, 2nd Edition Newham, Cameron and Rosenblatt, Bill 1998 O'Reilly Media
Linux Shell Scripting with Bash Burtch, Ken O. 2004 Sams
Bash in easy steps McGrath, Mike 2019 In Easy Steps Limited
Mastering Linux Shell Scripting: A practical guide to Linux command-line, Bash scripting, and Shell programming, 2nd Edition Ebrahim, Mokhtar and Mallett, Andrew 2018 Packt Publishing
Shell Scripting: How to Automate Command Line Tasks Using Bash Scripting and Shell Programming Cannon, Jaosn 2015 CreateSpace Independent Publishing Platform
Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) Newham, Cameron 2005 O'Reilly Media
Command Line Kung Fu: Bash Scripting Tricks, Linux Shell Programming Tips, and Bash One-liners Cannon, Jason 2014 CreateSpace Independent Publishing Platform
From Bash to Z Shell: Conquering the Command Line Kiddle, Oliver and Stephenson, Peter and Peek, Jerry 2004 Apress
Mastering Linux Shell Scripting,: A practical guide to Linux command-line, Bash scripting, and Shell programming, 2nd Edition Ebrahim, Mokhtar and Mallett, Andrew 2018 Packt Publishing
Pro Bash Programming, Second Edition: Scripting the GNU/Linux Shell Johnson, Chris and Varma, Jayant 2015 Apress
Mastering Bash: A Step-by-Step Guide to working with Bash Programming and Shell Scripting Zarrelli, Giorgio 2017-06-21T00:00:01Z Packt Publishing
Unix in easy steps: Commanding the BASH shell McGrath, Mike 2015 In Easy Steps Ltd
Pro Bash Programming, Second Edition: Scripting the GNU/Linux Shell Johnson, Chris and Varma, Jayant 2015 Apress
Pro Bash Programming: Scripting the Linux Shell (Expert's Voice in Linux) Johnson, Chris 2009 Apress
Shell Programming and Bash Scripting: Ultimate Beginners Guide Book Collins, Robert 2016 CreateSpace Independent Publishing Platform
Linux Command Line: FAST and EASY!: Linux Commands, Bash Scripting Tricks, Linux Shell Programming Tips and Bash One-Liners Gimson, Matthew 2015 CreateSpace Independent Publishing Platform
LINUX Command-Line for Beginners: A Comprehensive Step-by-Step Starting Guide to Learn Linux from Scratch to Bash Scripting and Shell Programming Mach, Dylan 2019-12-09T00:00:01Z Independently published
Shell Programming: Bash Scripting from First Steps To Confident User Johnson, Sean 2017 CreateSpace Independent Publishing Platform
bash Cookbook Carl Albing 20070524 O'Reilly Media, Inc.
bash Cookbook Carl Albing 20070524 O'Reilly Media, Inc.
Mastering Bash Giorgio Zarrelli 21-06-2017 Packt Publishing
Pro Bash Programming Chris Johnson 20091205 Springer Nature
Bash Pocket Reference Arnold Robbins 20160217 O'Reilly Media, Inc.
Bash kurz & gut Günther, Karsten 03/2014 O'Reilly Media, Inc.
Bash Pocket Reference Arnold Robbins 20160217 O'Reilly Media, Inc.
Bash kurz & gut Günther, Karsten 03/2014 O'Reilly Media, Inc.
Bash Quick Start Guide Tom Ryder 28-09-2018 Packt Publishing
Learning the bash Shell Cameron Newham 20050329 O'Reilly Media, Inc.
Learning the bash Shell Cameron Newham 20050329 O'Reilly Media, Inc.
Linux Shell Scripting with Bash Ken O. Burtch 20040129 Pearson Technology Group
Bash Scripting, Linux And Shell Programming Complete Guide Frahaan Hussain
Eine praktische Einführung in die Informatik mit Bash und Python Tobias Häberlein 20111215 De Gruyter
Pro Bash programming,UNIX Shells,UNIX (Computer file),UNIX (Computer file),UNIX Shells Johnson, Chris F. A. and Varma, Jayant 2015,[2015] Apress,,Springer Science+Business Media New York

Publications about Bash from Semantic Scholar

title authors year citations influentialCitations
Explainable Natural Language to Bash Translation using Abstract Syntax Tree Shikhar Bharadwaj and S. Shevade 2021 3 0
reason.html · bash.html · http.html

View source

PLDB - Build the next great programming language · v2022 · Day 33 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com