Okay.I will be very specific with what I want.I need to write a script a which processes a numerous files and it has following type of xmls in those files:
<NotificationList>
<Name>Postpaid</Name>
<Amount>5.0</Amount>
<IsRecurring>0</IsRecurring>
<ThresholdLimit>5.0</ThresholdLimit>
<ObjectType>1</ObjectType>
<subscription>1010984</subscription>
<NotificationTime>2018-05->
31T00:18:46.000000+01:00</NotificationTime>
I need to get the name, subscription, NotificationTime for each of the xml in column wise. I am able to print these values in rows one below the other by doing grep -A 8 "" * | grep 'name\|subscription\|NotificationTime'
Hope am clear this time.