Frage

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

War es hilfreich?

Lösung

It's as simple as that:

./program -e | crunch etc

Considering your comment below you might give this a try:

./program `crunch etc` -e

Andere Tipps

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...)

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top