Skip to content

Allow file list to be passed via stdin #52

@Daniel15

Description

@Daniel15

Sometimes I have a list of files (for example, from a BigGrep query) and want to pass this to fastmod via stdin, but it only accepts file paths in the command line.

Something like this works, but it's kinda ugly and has the potential to hit the command line length limit if the list is long enough.

# From BigGrep
fastmod '\bFoo\b' 'Bar' $(tbgs -sl 'Foo')

# From a file containing a list of paths
fastmod '\bFoo\b' 'Bar' $(</tmp/files.txt)

Ideally I'd like to be able to do this:

# From BigGrep
tbgs -sl 'Foo' | fastmod '\bFoo\b' 'Bar'

# From a file containing a list of paths
fastmod '\bFoo\b' 'Bar' </tmp/files.txt

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