Bash: Difference between revisions
From DWIKI
mNo edit summary |
|||
Line 1: | Line 1: | ||
*[http://www.gnu.org/software/bash/bash.html Homepage] | *[http://www.gnu.org/software/bash/bash.html Homepage] | ||
*http://www.linuxdoc.org/HOWTO/Bash-Prog-Intro-HOWTO.html | *http://www.linuxdoc.org/HOWTO/Bash-Prog-Intro-HOWTO.html | ||
*[http://teohm.com/blog/shortcuts-to-move-faster-in-bash-command-line/ Shortcuts to move faster in Bash command line] | |||
*[http://en.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html Bash Guide for Beginners] | *[http://en.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html Bash Guide for Beginners] | ||
*http://www.ling.helsinki.fi/users/reriksso/unix/shell.html | *http://www.ling.helsinki.fi/users/reriksso/unix/shell.html |
Revision as of 11:00, 21 April 2017
- Homepage
- http://www.linuxdoc.org/HOWTO/Bash-Prog-Intro-HOWTO.html
- Shortcuts to move faster in Bash command line
- Bash Guide for Beginners
- http://www.ling.helsinki.fi/users/reriksso/unix/shell.html
- Advanced Bash Scripting Guide
- Linux Shell Scripting Tutorial
- Aliens Bash Tutorial
- http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/
Tips and tricks
get first character of a string
FIRST=${STRING:0:1}
check if var contains substring
test "${s#*foo}" != "${s}"
move cursor
^b move back 1 char ^f move forward 1 char alt-b move back 1 word alf-f move forward 1 word