Here's a concise method to cut the first X characters using
cut(1)
. This example removes the first 4 characters by cutting a substring starting with 5th character.echo "$pid" | cut -c 5-
from : https://stackoverflow.com/questions/11469989/how-can-i-strip-first-x-characters-from-string-using-sed
No comments:
Post a Comment