I need to read an ASCII file coordinates.ascii that have one line only:
-I0.00130000258937/0.000899999864241
inside a bash script, and attribute 0.00130000258937 to the variable x_inc and 0.000899999864241 to y_inc.
guess that the regexp for x_inc is:
(\d.\d+)(?=/)
but I do not know the regexp for y_inc and also the sed or grep commands/syntax to implement the regexp inside the bash ..
x_inc=$(sed -n '(\d.\d+)(?=/)' coordinates.ascii ) # does not work!!!
echo "$coordinates" | grep -o "[0-9.]\+")