-   Programming (
-   -   list 10 lines by 10 lines in bash (

sqn 03-30-2010 03:05 AM

list 10 lines by 10 lines in bash
Hi all,

I have a file witch I need to list 10 line by 10 lines with something like press enter to go on in between.
Well, the problem is that i have absolutely no idea on how to implement this.

Can you give me some points?

thx in advanced

PMP 03-30-2010 03:26 AM

More and less are the utilities which are available linux for the pagenation.
Try them you may need to write a little script to do so in case they don't fulfil your requirement.

sqn 03-30-2010 03:56 AM

Thx :)
i used

# less file -N

I was so caught into functions that i forgot about simple comands ;)

grail 03-30-2010 04:04 AM

Don't forget to mark as SOLVED

All times are GMT -5. The time now is 11:22 AM.