Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cxxr/n

Pages through files N lines at a time
https://github.com/cxxr/n

Last synced: 10 days ago
JSON representation

Pages through files N lines at a time

Awesome Lists containing this project

README

        

# n.sh

Pages through files N lines at a time

## Usage

n pages through a file and dumps you back at the command line so that you can
copy/paste or build up a command line over time.

$ n file.txt
first
ten
lines
of
your
file
go
here
believe
me
$ n
the
next
ten
lines
//etc
$ n 3
the
three lines after
// etc

## Install

Add to your .bashrc/.zshrc/.shrc:

. /path/to/n.sh

n keeps a state file ~/.nstate for its purposes