On Sat, 10 Jun 2006 14:14:50 -0700 Dazed_75 wrote: > Awesome. Thanks. Still not perfect but it helps a lot and without > showing you the entire file, you got very close. This is good enough > to help with my exploration. The best I had done was: > > cat .local/share/applications/gconf-editor.desktop | grep -v [\[][^e] > > Fun stuff, but I remember when I worked in a Unix shop I always went > to Ron or one of my gurus when I needed to do harder ones. Dang I > wish I was better at this stuff. Anyway, I do appreciate the help > and admire your talent :) > > On 6/10/06, Jerry Davis wrote: > > > > On Sat, 10 Jun 2006 13:28:57 -0700 > > Dazed_75 wrote: > > > > > There are files that seem to contain a lot of lines seemingly > > > used to display information suitable for many locales. One > > > example is ~/.local/share/applications/gconf-editor.desktop. > > > These would be a lot easier to explore if I could look at them > > > and not see the lines for locales other than my language. > > > > > > My thought was to do a cat foofile | grep regexpl where regexpl > > > would pass all lines having no [*] term unless it were [en*]. > > > Unfortunately, I have forgotten much of what I once knew about > > > regular expressions. I know I want to relearn, but not today. A > > > little help please? > > > > you can do this: > > > > awk '$0 !~ /\[/ { print $0 }; $0 ~ /\[en/ { print $0 }' /path/to/ > > file ok, how about this? awk '$0 !~ /[^[].*\[/ { print $0 }; $0 ~ /\[en/ { print $0 }' file > > > > > > > > > > -- > > > "The liberties of a people never were, nor ever will be, secure, > > > when the transactions of their rulers may be concealed from them." > > > > > > Patrick Henry quote > > > > > > -- > > Hobbit Name: Pimpernel Loamsdown > > Registered Linux User: 275424 > > > > This email's random fortune: Pryor's Observation: > > How long you live has nothing to do > > with how long you are going to be dead. > > --------------------------------------------------- > > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > > To subscribe, unsubscribe, or to change you mail settings: > > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > > > > > -- > "The liberties of a people never were, nor ever will be, secure, when > the transactions of their rulers may be concealed from them." > > Patrick Henry quote -- Hobbit Name: Pimpernel Loamsdown Registered Linux User: 275424 This email's random fortune: I Know A Joke!! --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss