Skip to content

Usage: how to handle blank and custom command in pre-defined variable? #1002

@justrajdeep

Description

@justrajdeep

hi

really love this tool. thanks for the great work.

I have a question about a specific use case.

In my command line i want to pick multiple files from a certain path and also have an option to have nothing.

What i could come up is something like this

$ runt_args: echo ""; fd . -e runt $(depth)/diag/testgen/runt_args/ | sed 's/\.runt$//g' | xargs -n1 basename | sort -u --- --multi --expand

echo "" inserts the blank entry which i can select. The rest of the command selects the filenames.

But in my actual command i need to create a subcommand like $(echo <runt_args>)

my_script.pl $(echo <runt_args>)

is there some alternative way of doing this?

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