How do I remove the first character from a string in Linux?

How do I remove the first character from a string in Linux?
Answer
To remove the first character of a string in any POSIX compatible shell you need only look to parameter expansion like: ${string#?} Different approach, using sed, which has the benefit that it can handle input that doesn’t start with a dot.
 

Tìm kiếm

Back
Top