Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

feature request: slicing from end #355

@gauteh

Description

@gauteh

Hi,

It would be great to be able to slice from the end, more or less like tail works. Currently this requires a xsv count, and then a xsv slice -s with a manually subtracted number. Maybe --start and --end could support negative numbers similar to how python slices work?

xsv slice -s -10 gets the last 10 records
xsv slice -e -10 gets the record up to the last 10 records.

Best regards,
Gaute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions