Hi friends,
I have a file with following pattern.
OBJECT TYPE="locale",
NAME=locale_nl_NL, UNIQUE_FIELD=win32_lcid
FIELDS
clarify_lang = 0;
END_FIELDS
END_OBJECT NAME=locale_nl_NL
OBJECT TYPE="locale", NAME=locale_nl_BE
UNIQUE_FIELD=win32_lcid
FIELDS
iso_cntry = "BE";
END_FIELDS
END_OBJECT NAME=locale_nl_BE
I want to saparate lines starting with OBJECT till FIELDS. e.g.
My o/p file should look like
OBJECT TYPE="locale",
NAME=locale_nl_NL, UNIQUE_FIELD=win32_lcid
OBJECT TYPE="locale", NAME=locale_nl_BE
UNIQUE_FIELD=win32_lcid
How this can be done using
perl/awk/
sed??
thanks in advance,
-Ashish