How far would we have to travel to make all of our familiar constellations unrecognisable? Author. Hi, I am new to Unix. August 30, 2016 at 7:01 pm #52593. Ask Question Asked 11 years, 5 months ago. Example 2: Heavy duty string modification; 4. Shell script to extract string from a file and return the next chars until a whitespace . @DavidFoerster pls post that as an answer - IMHO this is by far preferable to all the sed/awk/grep/perl solutions suggested so far. I need to extract a path from a string that will contain only a valid path, but may also have other non-filespec characters - just not in the path string. I changed title to represent current state of this QA more precisely. Given a filename in the form someletters_12345_moreleters.ext, I want to extract the 5 digits and put them into a variable.. For example "am a subs" is subsection of the string "I am a substring". Can an exiting US president curtail access to Air Force One from the new president? content