Bash $* and $@ Jan. 13, 2020, 2:18 p.m.

In Bash, there are two closely related “special parameters” for accessing how the current script was invoked: $* and $@. For both variables, the behavior is affected by whether or not the variable is enclosed in double quotes. The following table summarizes all cases:

Form    Meaning
$*    $1 $2 $3...
$@    $1 $2 $3...
"$*"  "$1 $2 $3..."
"$@"  "$1" "$2" "$3"...

Bash-my-AWS Jan. 3, 2020, 7:36 p.m.

Bash-my-AWS is a simple but extremely powerful set of CLI commands for managing resources on Amazon Web Services.

bash aws

Newbie at bash scripting? Here's some advice. April 5, 2019, 11:43 a.m.

Bash is powerful, it is super permissive, and because of that, it is extremely easy to do something stupid with it. This blogpost is more about good conventions in bash, not it's syntax or how to do basic stuff with it.

bash shell

How to do things safely in bash April 5, 2019, 11:42 a.m.

Like programming in C or driving a car, contemporary shellscript languages require some knowledge and discipline to use safely, but that's not to say it can't be done. This guide is here to show that in bash, it can be done. Specifically, those systematic bugs that the language encourages can be eliminated by disciplines that are outlined here. Realize that Bash is not a language where the correct way to do something is also the easiest.

bash shell

The Bash Hackers Wiki April 5, 2019, 11:41 a.m.

This wiki is intended to provide human-readable documentation and information so users aren't forced to read every bit of the Bash manpage - which can be difficult to understand.

bash shell

Ten Things I Wish I’d Known About bash Jan. 9, 2018, 12:17 p.m.

You don’t have to look hard on the internet to find plenty of useful one-liners in bash, or scripts. And there are guides to bash that seem somewhat intimidating through either their thoroughness or their focus on esoteric detail.

Here I’ve focussed on the things that either confused me or increased my power and productivity in bash significantly, and tried to communicate them in a way that emphasises getting the understanding right.

tutorial bash

Bash colors and formatting Jan. 4, 2015, 12:16 a.m.

The ANSI/VT100 terminals and terminal emulators are not just able to display black and white text ; they can display colors and formatted texts thanks to escape sequences. Those sequences are composed of the Escape character (often represented by ^[ or <Esc>) followed by some other characters: <Esc>[FormatCodem.

bash terminal ansi programming

Bash Special Parameters Explained April 11, 2014, 11:14 a.m.

Explanation of $*, $@, $#, $$, $!, $?, $-, $_ usage in bash.

bash linux shell scripting tips

Shell startup scripts Feb. 19, 2013, 12:35 p.m.

Startup script execution order for Bash, Zsh and Shell.

scripting shell zsh tutorial tips unix bash reference

Handy one line scripts for awk July 13, 2012, 2:22 p.m.

Handy one line scripts for awk

howto shell sysadmin bash cheatsheet reference programming unix linux awk

Useful one line scripts for see July 13, 2012, 2:06 p.m.

Useful one line scripts for see

tools howto tips bash programming reference shell unix linux sed

Linux tips March 24, 2011, 1:10 p.m.

Good list of linux / bash tips & tricks.

linux tips bash tools programming

Geeklets April 25, 2010, 5:07 p.m.

Geektool scripts.

bash geektool mac osx script terminal

One Minute Per Day March 12, 2010, 1:57 p.m.

Script to take screenshots at regular intervals and combine into a movie.

art script video tutorial bash

[shell-fu:home]$ April 7, 2009, 11:12 p.m.

Shell-fu is a place for all those little command line goodies that you come across and then can never find again when you need them.

tips reference linux terminal bash scripting