문제

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