% grep "yourString" * | awk '{ if($1!=filename){ filename=$1; print $filename}}' 10000CSCO.txt: <xsl:with-param name="vars" select="yourString"/> 10000ELMR.txt: <xsl:with-param name="vars" select="yourString"/> 10000GLSW.txt: <xsl:with-param name="vars" select="yourString"/> 10000IN04.txt: <xsl:with-param name="vars" select="yourString"/> 10000ISAG.txt: <xsl:with-param name="vars" select="yourString"/> 10000KNG1.txt: <xsl:with-param name="vars" select="yourString"/> 10000KNGT.txt: <xsl:with-param name="vars" select="yourString"/> 10000NETF.txt: <xsl:with-param name="vars" select="yourString"/> 10000NGMK.txt: <xsl:with-param name="vars" select="yourString"/> 10000REPI.txt: <xsl:with-param name="vars" select="yourString"/> 10000SATL.txt: <xsl:with-param name="vars" select="yourString"/> 10000SMRT.txt: <xsl:with-param name="vars" select="yourString"/> 10000VINM.txt: <xsl:with-param name="vars" select="yourString"/> %
Thursday, January 22, 2009
Finding Files with keywords
Posted by techgeek168 at 8:31 AM
Labels: CygwinAwkCronSed
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment