Skip to content

Feature Idea: perl -n / perl -p style run/eval command #861

@LunarLambda

Description

@LunarLambda

Akin to wrapping the entire file/expression in &rl 0 from stdin and (in case of -p), &p.

For example, for a file foo.txt with contents

Hello World
Foobar
Bye!

running uiua eval -p '⌵' < foo.txt should print:

HELLO WORLD
FOOBAR
BYE!

Would allow using uiua as a scripting replacement for tools like sed, perl, awk, etc...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions