I have to write a shell script to get value from a string, something like:string=abcdef pathNameHow can I use grep command with the use of regular expression to get pathName? 
Regular expression how to get value in shell script?
shell;shell script;regular expression