Bash: Difference between revisions

From DWIKI
Line 15: Line 15:


==check if var contains substring==
==check if var contains substring==
  [[ $foo =~ .*sub.* ]]
[[ $foo =~ .*sub.* ]]


==move cursor==
==move cursor==

Revision as of 11:45, 11 January 2018