pipe as arguments

anubis

I'm trying to use the output of a command as arguments:

The command: /home/alexandre/dropbox.py exclude add ls | grep -v photos

I have to add a list of files, for example:

/home/alexandre/dropbox.py exclude add a.txt b.txt c.txt

ls | grep -v photos will give me a list of all files except the folder photos.

But if I use my command, the command adds exclusion for the file ls (which does not exist, I want to run the command ls).

Anybody know how to do that?

Bram

What you are looking for is to execute the command in a subshell, like:

/home/alexandre/dropbox.py exclude add $(ls | grep -v photos)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Watch + pipe + multiple arguments

From Dev

Pass arguments with pipe in bash

From Dev

Powershell pipe and command line arguments

From Dev

Powershell, pipe list of arguments to a command

From Dev

angular2 pipe for multiple arguments

From Dev

Is there a way to pass arguments via pipe on bash?

From Dev

using xargs pass arguments to sub shell with pipe

From Dev

pass arguments when pipe is called inside a function

From Dev

Bash pipe delimited string into command's arguments

From Java

How do I call an Angular 2 pipe with multiple arguments?

From Dev

cat and Pipe to Run Command Won't Take Two Arguments

From Dev

How do I pipe a newline separated list as arguments to another command?

From Dev

Writing a Shell Function that accepts input from a pipe and arguments simultaneously

From Dev

How do I pipe a newline separated list as arguments to another command?

From Dev

Running several times the same command with several arguments after a pipe

From Dev

How to pipe a text file containing mongod arguments to mongod command

From Dev

How to pipe Enum output to another Enum function that takes multiple arguments?

From Dev

What is a sensible way to pipe the first argument and all proceeding arguments separately

From Dev

Pipe multiline powershell results into multiple arguments in one line

From Dev

Perl inside Bash: How to read from pipe and pass arguments to perl at the same time?

From Dev

How to pass multiple arguments with pipe symbol into a bash-script's case statement

From Dev

grep tries to read from a file instead of through pipe when passing function arguments with a space

From Dev

How to access arguments from previous observables when using pipe in rxjs 6?

From Dev

pipe : write to front of pipe

From Dev

Chaining pipe | with &&

From Dev

Redirection with pipe

From Dev

Pipe into if statement?

From Dev

Arguments object different to arguments

From Dev

Will a process writing to a pipe block if the pipe is full?

Related Related

  1. 1

    Watch + pipe + multiple arguments

  2. 2

    Pass arguments with pipe in bash

  3. 3

    Powershell pipe and command line arguments

  4. 4

    Powershell, pipe list of arguments to a command

  5. 5

    angular2 pipe for multiple arguments

  6. 6

    Is there a way to pass arguments via pipe on bash?

  7. 7

    using xargs pass arguments to sub shell with pipe

  8. 8

    pass arguments when pipe is called inside a function

  9. 9

    Bash pipe delimited string into command's arguments

  10. 10

    How do I call an Angular 2 pipe with multiple arguments?

  11. 11

    cat and Pipe to Run Command Won't Take Two Arguments

  12. 12

    How do I pipe a newline separated list as arguments to another command?

  13. 13

    Writing a Shell Function that accepts input from a pipe and arguments simultaneously

  14. 14

    How do I pipe a newline separated list as arguments to another command?

  15. 15

    Running several times the same command with several arguments after a pipe

  16. 16

    How to pipe a text file containing mongod arguments to mongod command

  17. 17

    How to pipe Enum output to another Enum function that takes multiple arguments?

  18. 18

    What is a sensible way to pipe the first argument and all proceeding arguments separately

  19. 19

    Pipe multiline powershell results into multiple arguments in one line

  20. 20

    Perl inside Bash: How to read from pipe and pass arguments to perl at the same time?

  21. 21

    How to pass multiple arguments with pipe symbol into a bash-script's case statement

  22. 22

    grep tries to read from a file instead of through pipe when passing function arguments with a space

  23. 23

    How to access arguments from previous observables when using pipe in rxjs 6?

  24. 24

    pipe : write to front of pipe

  25. 25

    Chaining pipe | with &&

  26. 26

    Redirection with pipe

  27. 27

    Pipe into if statement?

  28. 28

    Arguments object different to arguments

  29. 29

    Will a process writing to a pipe block if the pipe is full?

HotTag

Archive