BASH – Tips and tricks

Published on Author gryzliLeave a comment

Bash Variable String Manipulation

  Front Match These are the examples of a front matching Front is meant to be “left to right” matching

  Rear Match These are the examples of a rear matching Front is meant to be “right to left” matching a = “blog.gryzli.info” echo ${a%.*} # prints “blog.gryzli” echo ${a%%.*} #… Continue reading BASH – Tips and tricks