Skip to content

tsvkit join allows adding file name as header #38

@dawnmy

Description

@dawnmy

When tsvkit join files with two columns and no header row (or when the current header is not needed for the output), we can use the input file name or its basename (without the extension) as the column name for the value column of each file in the output file.

tsvkit join -f 1 --add-header "{name}"/"{base}"/"{dirname}"

and "{base:}" base name without any extension, "{base.}" base name without last extension

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