The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-16-2008
eamani_sun eamani_sun is offline
Registered User
 

Join Date: May 2008
Posts: 39
Help me with parsing this file

Hi,

I need a shell script that would parse this file

/usr/share/i18n/locales/aa_DJ:title "Afar language locale for Djibouti (Cadu/Laaqo Dialects)."
/usr/share/i18n/locales/aa_ER:title "Afar language locale for Eritrea (Cadu/Laaqo Dialects)."
/usr/share/i18n/locales/aa_ER@saaho:title "Afar language locale for Eritrea (Saaho Dialect)."
/usr/share/i18n/locales/aa_ET:title "Afar language locale for Ethiopia (Cadu/Carra Dialects)."


I want output as this

Afar language locale for Djibouti (Cadu/Laaqo Dialects)
Afar language locale for Eritrea (Cadu/Laaqo Dialects)
Afar language locale for Eritrea (Saaho Dialect)
Afar language locale for Ethiopia (Cadu/Carra Dialects).

I'll greatly appreciate any help.


Thanks,
Sundeep
Reply With Quote
Forum Sponsor