hacking linux -- Industry guru Dave Taylor answers questions about a wide variety of technical topics, including HTML, online advertising, Cascading Style Sheets, Web design, Unix, Linux, search engine optimization, Mac OS X, shell script programming and Microsoft Windows.

"hacking linux" Help and Information



How do I read prior lines in a text file?

I want to compare a line in a file with zero(0) and if its more than zero i want to print the prior two lines, can u please help me in solving out this... please...

Continue reading about How do I read prior lines in a text file?


Advanced Search :: Ask Dave Taylor!


Match case   Search using regular expressions
Search: Entries Comments Both
Sort By:
Sort Order:
Search entries from:
Maximum results shown:


Need Help? Ask Dave Taylor!
Search