SyntaxFix
Write A Post
Hire A Developer
Questions
expr(1) has a substr subcommand:
expr(1)
expr substr <string> <start-index> <length>
This may be useful if you don't have bash (perhaps embedded Linux) and you don't want the extra "echo" process you need to use cut(1).