We want to read XML attributes from an XML file. Example of file content is as below:
<
sed -n '/
Creates a hold pattern for the value then matches everything except for the newline to avoid printing the newline, it expects the value double quoted as per your example data.
E.g. Output: 15
(Prior to edit: sed '/)
sed '/)