#!/bin/bash
#!/bin/bash
This may include other bash flow of control statementa.
#!/bin/bash
$HOME/.bash_history contains these.
HISTFILE - name of history file. Default for bash is .bash_history.
Adjust these in your .bash_profile in your $HOME.
Newer shells such as bash also allow users to use the arrow keys
provides editing features of Emacs to edit a command line.
#!/bin/bash
http://wiki.bash-hackers.org/howto/redirection_tutorial
This can be a whole block of bash code or even invoke other programs.
Use {} to dereference values > 9. bash
bash if
#!/bin/bash
find . -exec grep bash {} \; > found.txt 2> /dev/null
In bash, noclobber has no effect.
In bash, a <d> (EOF) will also stop input but you will
bash select loop
Or put definition in .bashrc if you want it always available.
In bash - NO spaces between variable name, equal, and string being
array - bash can create variable arrays.
In bash, you can unset a variable. Don't use $ dereference.
HISTFILE=/home/berezin/.bash_history # where history stored between sessions
SHELL=/bin/bash
#!/bin/bash
bash has built-in version that takes no options. To run the standard
- can be put in .bashrc, so set every time a command shell is run.
Note that bash has an internal form of test that may vary somewhat
with no argument - in bash, this will return you to your home directory.
But can be defined in .bashrc
Technically, bash alias cannot take command line arguments.
1. Place your alias definition in .bash_rc in your $HOME directory.
2. Invoke .bash_rc from .bash_profile in your $HOME directory.
For indexed for loop, bash allows the use of braces {}
# --signal /bin/bash only. signal is a keyword.
bash kill will also take job IDs in current shell.