Bash

From DWIKI
Revision as of 14:21, 15 July 2016 by Tony (talk | contribs)

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