I need to extract some information from a header file, and I need to get a site name from a string like this:
0008 0080 LO Institution Name Site Name Here
The problem is that the site name contains spaces too. The only thing that I came up that works is saving the line as a string and then get the site name as a string after a certain number of characters, like this:
echo ${line:50}
but I'd like something more elegant.
I just noticed that it also removed multiple spaces between Institution Name
and Site Name
.