Question

I have a program which requires one variable -e, ./program -e

I know how to use crunch in linux using pipe ./program | crunch etc

but I do not know how to add the first variable -e

is there a way I can just run crunch in the middle of a command?

* btw a user of mine has lost the password to an important zip file

Was it helpful?

Solution

It's as simple as that:

./program -e | crunch etc

Considering your comment below you might give this a try:

./program `crunch etc` -e

OTHER TIPS

I think the correct answer is rather: crunch | xargs -I{} ./program -e {}

see man xargs for more explanations (-I simply gives a reuseable name to what is read on the input stream...)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top