BASH – Tips and tricks

Published on Author gryzliLeave a comment

Bash Variable String Manipulation A = “123456” # This prints the chars from 3 to 5 # Chars are counting from [0] echo ${A:3:5} # prints “456” echo ${A:1:4} # prints “2345” # Prints the number of chars echo ${#A} # prints “6”   Front Match These are the examples of a front matching Front… Continue reading BASH – Tips and tricks