Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • That gives me the error -bash: 123: command not found Commented Oct 1, 2015 at 15:26
  • Does num=`echo $file |cut -c6-8` or num=$(echo $file |cut -c6-8) give you the error you mentioned???? cause it is working for me file="hola que tal";num=$(echo $file |cut -c6-8);echo $num returns que Commented Oct 1, 2015 at 15:36
  • Oh, nvm I was just doing some wrong syntax it seems to work fine. Thanks. Commented Oct 1, 2015 at 15:39