I prompt user to input a path and stored in a variable named path.
The structure of the path will always be the same, its just that the system, mode, output names are not fix. Therefore, im planning to grep the system name which located after /summary/.
How can i grep the system name and then stored in a variable so that i can used the variable using bash script? I am expecting to the system name should be in a new variable. (e.g. $systemname)