Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cxxr/n
- Owner: cxxr
- License: mit
- Created: 2013-12-15T22:57:48.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-15T23:09:31.000Z (about 11 years ago)
- Last Synced: 2024-11-08T10:11:56.823Z (2 months ago)
- Language: Shell
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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