grep or fgrep ?
Thilo Six
T.Six at gmx.de
Sun Sep 24 10:00:05 UTC 2006
Luis wrote the following on 24.09.2006 04:38:
<snip>
> filename [linenumber]: line_containing_string
>
> An example is:
>
> $> cd /usr/share/applications
> $> find.pl keys '\.desktop'
> keybinding.desktop [76]: Comment=Assign shortcut keys to commands
> keybinding.desktop [92]: Comment[en_CA]=Assign shortcut keys to commands
> keybinding.desktop [93]: Comment[en_GB]=Assign shortcut keys to commands
> easytag.desktop [12]: Comment[nl]=EasyTAG is een programma voor het
> bewerken van tags van MP2-, MP3-, FLAC-, Ogg Vorbis, MusePack en
> Monkeys Audio-bestanden. Dit gebeurt in een verzorgde GTK+-omgeving.
>
> You can get this script from:
> http://lems.kiskeyix.org/toolbox/?f=find.pl&d=1
> [/shameless_plug]
$ cd /usr/share/applications
$ recgrep keys .
./keybinding.desktop:74:Comment=Assign shortcut keys to commands
./keybinding.desktop:89:Comment[en_CA]=Assign shortcut keys to commands
./keybinding.desktop:90:Comment[en_GB]=Assign shortcut keys to commands
./mimeinfo.cache:42:application/pgp-keys=kde-kgpg.desktop
...
...
...
$ which recgrep
recgrep is aliased to `grep -Hirn'
;)
bye Thilo
--
i am on Ubuntu 2.6 KDE
- some friend of mine
gpg key: Ox4A411E09
More information about the ubuntu-users
mailing list