grep or fgrep ?

Richard cms01 at
Sat Sep 23 15:15:34 UTC 2006

Have dozens of files in a folder and want to extract the following:

all the files end with .desktop

eg: google.desktop
what to extract ( name of file ) and search string "Keys"

eg:	fgrep "Keys" *.desktop ( bring back only one file ) there a dozens of 
files... pgpkeys.desktop:Keys=pgp,pgpkeys

So, this tells me that pgpkeys.desktop "Keys"(string) is = to pgp
and google.deskotp "Keys" is = to gg

So, as you can see, I am trying to make a list of Keys as a output to screen 
or a text file for printing. This are the web shortcuts.

So, any grep guru's ?


More information about the ubuntu-users mailing list