Hey Friends,
Need your help again.
I have input.temp file as follows
$cat input.temp
Lakme|Beauty Products|Lipstick
L'Oreal|Hair Care|Conditioner
Lakme|Beauty Products|Lip gloss
L'Oreal|Hair Care|Mild Shampoo
Gala|Beauty Products|Mehndi Cones
Lakme|Beauty Products|Eye Shadow
Lakme|Beauty Products|Lip liner
Gala|Beauty Products|Bridal dots
Lakme|Beauty Products|Eye liner
L'Oreal|Hair Care|Special T Shampoo
Lakme|Beauty Products|Mascara
Lakme|Beauty Products|Kajal
Gala|Beauty Products|Temp Tattoos
What we are trying to do is as follows.
I want to grep everything except "L'Oreal" and want to replace manufacture's name and respective product type i.e. Hair care, Beauty products etc with word "Expired"
output would look like follows
$cat output.temp
Expired|Expired|Lipstick
L'Oreal|Hair Care|Conditioner
Expired|Expired|Lip gloss
L'Oreal|Hair Care|Mild Shampoo
Gala|Beauty Products|Mehndi Cones
Expired|Expired|Eye Shadow
Expired|Expired|Lip liner
Gala|Beauty Products|Bridal dots
Expired|Expired|Eye liner
L'Oreal|Hair Care|Special T Shampoo
Expired|Expired|Mascara
Expired|Expired|Kajal
Gala|Beauty Products|Temp Tattoos
Kindly help.
Anu.