Debugging med grep

-n viser linjenummeret. Ved at søge på fx grep ‘div’ og ‘/div’ i en fil bliver det tydeligt, hvor start og sluttag findes i filen:

per@debian-petj:~/Skrivebord/webkanban$ grep '</div' KbnBoard.php -n
16:	<div id='icon-edit-pages' class='icon32'></div><br />
107:			</div>";
111:		echo "</div>";
112:		echo "</div>";

By Per Thykjaer Jensen

Per is the WordPress expert at Business Academy Aarhus. Senior Lecturer at the Multimedia Design Programme. His background is in the Arts: MA Literature History and BA Art History. Later he added a MA in IT, interaction and Multimedia. And he is a wicked Linux user.

We use cookies - is it ok with you+ more information will set a few cookies from Doubleclick, Google and the Social Media plugins they ay set some cookies.