the n-th character from a string

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

the n-th character from a string

patrick
is there any way for obtain the n-th charcter from a string?
Reply | Threaded
Open this post in threaded view
|

Re: the n-th character from a string

Paul Smith-20
On Sat, 2014-05-31 at 01:09 -0700, patrick wrote:
> is there any way for obtain the n-th charcter from a string?

There are no built-in functions to do it.  You can use external programs
like "cut", invoked by the $(shell ...) program.

Alternatively you can use the GMSL: http://gmsl.sourceforge.net/

I haven't looked into it closely but there's a substr function which
appears to do what you want.


_______________________________________________
Help-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-make