Remove Character From Start of String

  • Html
When you need to remove character from the beginning of a string the easiest way to go is to use the 'cut' utility.
Here is an example of how to remove character one to four of a string ;
echo $string | cut -c 1-4

Please feel free to leave comments, suggestion or to share this post!