Skip to content

sub and gsub: how to use "\n" in replace #1805

@aborruso

Description

@aborruso

Hi,
if I run echo "a=lorem" | mlr --ocsv sub -a "r" "\n"

I get this without carriage return

a
lo\nem

Shouldn't I also have in output with sub and gsub the ability to use these special chars?

Thank yoy

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