Bash: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
Line 11: | Line 11: | ||
FIRST=${STRING:0:1} | FIRST=${STRING:0:1} | ||
==move cursor== | |||
^b move back 1 char | |||
^f move forward 1 char | |||
alt-b move back 1 word | |||
alf-f move forward 1 word | |||
[[Category: Scripting]] | [[Category: Scripting]] | ||
[[Category: Programming]] | [[Category: Programming]] |
Revision as of 14:21, 15 July 2016
- Homepage
- http://www.linuxdoc.org/HOWTO/Bash-Prog-Intro-HOWTO.html
- 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
Tips and tricks
get first character of a string
FIRST=${STRING:0:1}
move cursor
^b move back 1 char ^f move forward 1 char alt-b move back 1 word alf-f move forward 1 word