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>";
211:</div>
212:</div>

Published by

Per Thykjaer Jensen

I am a Senior Lecturer in front- and backend web programming at the Multimedia Design and Communication Programme at Business Academy Aaarhus.

I speak several languages: PHP, Python, MySQL, JavaScript, Nodejs, HTML, CSS, and … Danish.

Background: MA it, interaction and multimedia – MA Literature history – BA Art History.