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 :

1

echo "This is a test" | cut -c 1-4
This will output :  
This

About the Author

Stephane Morin

Sign up for more great content!