Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C csvkit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wireservice
  • csvkit
  • Merge requests
  • !409

csvlook: Add max rows option

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/MichaelAquilina/add_truncate into master May 27, 2015
  • Overview 0
  • Commits 3
  • Pipelines 0
  • Changes 3

Created by: MichaelAquilina

I found myself needing an option to truncate to the top n rows often while working with CSV files. Example usage:

csvlook --truncate 5 < example.csv

The head command is not particularly suited got this because of the fact that you need to consider the first 3 lines are part of the header. While you could just stay manually adding 3 to your head argument each time I thought it would make more sense to just provide the option from within csvlook.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/MichaelAquilina/add_truncate