<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Gnu_grep</id>
	<title>Gnu grep - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Gnu_grep"/>
	<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Gnu_grep&amp;action=history"/>
	<updated>2026-05-19T12:59:26Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Gnu_grep&amp;diff=1083&amp;oldid=prev</id>
		<title>Jpinon : Page créée avec « La version GNU de grep comporte une multitude d&#039;options qu&#039;il est difficile de retenir en entier.  == Lignes précédentes et suivantes == Un simple :&lt;syntaxhighlight lang=&quot;bash&quot;&gt; grep &quot;motif&quot; fichier &lt;/syntaxhighlight&gt;On va recherche les lignes contenant la chaine &quot;motif&quot; dans le fichier. Mais souvent ce que nous recherchons se situe a quelques lignes avant ou après le modèle. C&#039;est là qu&#039;interviennent les options A et B pour after et before.&lt;syntaxhighlight... »</title>
		<link rel="alternate" type="text/html" href="https://knowledge.pinon-hebert.fr/mediawiki/index.php?title=Gnu_grep&amp;diff=1083&amp;oldid=prev"/>
		<updated>2025-04-18T08:27:53Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « La version GNU de grep comporte une multitude d&amp;#039;options qu&amp;#039;il est difficile de retenir en entier.  == Lignes précédentes et suivantes == Un simple :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; grep &amp;quot;motif&amp;quot; fichier &amp;lt;/syntaxhighlight&amp;gt;On va recherche les lignes contenant la chaine &amp;quot;motif&amp;quot; dans le fichier. Mais souvent ce que nous recherchons se situe a quelques lignes avant ou après le modèle. C&amp;#039;est là qu&amp;#039;interviennent les options A et B pour after et before.&amp;lt;syntaxhighlight... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;La version GNU de grep comporte une multitude d&amp;#039;options qu&amp;#039;il est difficile de retenir en entier.&lt;br /&gt;
&lt;br /&gt;
== Lignes précédentes et suivantes ==&lt;br /&gt;
Un simple :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
grep &amp;quot;motif&amp;quot; fichier&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;On va recherche les lignes contenant la chaine &amp;quot;motif&amp;quot; dans le fichier. Mais souvent ce que nous recherchons se situe a quelques lignes avant ou après le modèle. C&amp;#039;est là qu&amp;#039;interviennent les options A et B pour after et before.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
grep -A2 &amp;quot;motif&amp;quot; fichier&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;Grep va afficher la ligne contenant &amp;quot;motif&amp;quot; mais aussi les deux suivantes quand, au contraire :&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
grep -B2 &amp;quot;motif&amp;quot; fichier&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;va afficher les deux précédentes.&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
grep -B1 -A1 &amp;quot;motif&amp;quot; fichier &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;affiche la ligne précédente, la ligne contenant &amp;quot;motif&amp;quot; et la line suivante.&lt;/div&gt;</summary>
		<author><name>Jpinon</name></author>
	</entry>
</feed>