Hi All,
I would like to extract numbers 5, 15, 35 from filenames like (the second number in name):
join5x_angle_box5_tri.dat
join5x_angle_box15_tri.dat
join5x_angle_box35_tri.dat
....
How to do this?
I was thinking to apply command like
`expr index "$fileName" '.*box.*'`
in a loop, but it gives me back wrong position of the first number (2). What I do wrong here?
Thanks
oliver
I would like to extract numbers 5, 15, 35 from filenames like (the second number in name):
join5x_angle_box5_tri.dat
join5x_angle_box15_tri.dat
join5x_angle_box35_tri.dat
....
How to do this?
I was thinking to apply command like
`expr index "$fileName" '.*box.*'`
in a loop, but it gives me back wrong position of the first number (2). What I do wrong here?
Thanks
oliver