cygwin.rst
changeset 906 0066b8634d2e
parent 801 1bf976799d63
--- a/cygwin.rst	Wed Jul 20 14:37:56 2011 +0300
+++ b/cygwin.rst	Wed Jul 20 15:48:37 2011 +0300
@@ -83,10 +83,14 @@
 
   $ cygcheck -l pkg-name
 
-** Search package by file in installed packages.
+** Search package by containing file (only under installed packages).
 
   $ cygcheck -f full-path-to-file
 
+** Search packages by containing path (only under installed packages).
+
+  $ for f in /etc/setup/*.lst.gz; do gzip -c -d $f | grep $WORD  2>&1 >/dev/null && { echo $f; break; } || :; done
+
 ** Search for package.
 
 If you have file name or regex use (need internet connection):