<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fourier.fhsu.edu/index.php?action=history&amp;feed=atom&amp;title=Command_Line_Examples%3A_grep</id>
		<title>Command Line Examples: grep - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fourier.fhsu.edu/index.php?action=history&amp;feed=atom&amp;title=Command_Line_Examples%3A_grep"/>
		<link rel="alternate" type="text/html" href="http://fourier.fhsu.edu/index.php?title=Command_Line_Examples:_grep&amp;action=history"/>
		<updated>2026-05-07T17:42:59Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.1</generator>

	<entry>
		<id>http://fourier.fhsu.edu/index.php?title=Command_Line_Examples:_grep&amp;diff=516&amp;oldid=prev</id>
		<title>Cclark: Created page with &quot;The grep command can be used to # find files that contain a specific string of text # &quot;filter&quot; text in a pipeline to only lines matching (or only lines not matching) a specific s…&quot;</title>
		<link rel="alternate" type="text/html" href="http://fourier.fhsu.edu/index.php?title=Command_Line_Examples:_grep&amp;diff=516&amp;oldid=prev"/>
				<updated>2013-02-07T15:16:25Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The grep command can be used to # find files that contain a specific string of text # &amp;quot;filter&amp;quot; text in a pipeline to only lines matching (or only lines not matching) a specific s…&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The grep command can be used to&lt;br /&gt;
# find files that contain a specific string of text&lt;br /&gt;
# &amp;quot;filter&amp;quot; text in a pipeline to only lines matching (or only lines not matching) a specific string of text&lt;br /&gt;
&lt;br /&gt;
To search a single file for the string &amp;quot;password&amp;quot;&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 grep &amp;quot;password&amp;quot; file.txt&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
This will print a list of lines that contain the word password.&lt;br /&gt;
&lt;br /&gt;
To search all files ending in .txt for the string &amp;quot;password&amp;quot;&lt;br /&gt;
 &amp;lt;code&amp;gt;&lt;br /&gt;
 grep &amp;quot;password&amp;quot; *.txt&lt;br /&gt;
 &amp;lt;/code&amp;gt;&lt;br /&gt;
This will print a list of lines that contain the word &amp;quot;password&amp;quot;, but it will also show the file name that the line was found in.&lt;/div&gt;</summary>
		<author><name>Cclark</name></author>	</entry>

	</feed>