Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for displaying first or last N lines of a file #1

Open
khughitt opened this issue Feb 28, 2015 · 0 comments
Open

Add support for displaying first or last N lines of a file #1

khughitt opened this issue Feb 28, 2015 · 0 comments

Comments

@khughitt
Copy link
Owner

If possible, use similar syntax to head / tail, e.g.:

cats -5 file    # show first five lines
cats -n5 file   # same as above (alternate syntax)'
cats -n-5 file  # show last five lines of file

To keep things simple, it may be a good idea to only support this for basic operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant