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

有帮助吗?

解决方案

It's as simple as that:

./program -e | crunch etc

Considering your comment below you might give this a try:

./program `crunch etc` -e

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top