str="Hold=True Map=False 'This will map the data' Run=Yes Modify=False"
I want to print the field Run=Yes and retrive the value "Yes". I cannot use simple awk command because the position of the "Run" will be different at different times. Is there a way to print the matching pattern? There will be only one occurance of the string "Run="
I am not very good at using the complex expressions in sed .. It will be kind of you if you could put in a line or two what the sed command is doing here...
/.$val=\([^ \'\" ]*\)./ -> search for the value contained in "val" followed by non space and non single quote and non double quote characters .( using grouping \(.*\) ) , print the same using \1.