Jak zrobić żeby w skropcie bash-owym "pipe" | wywołać ze zmiennej.
#!/bin/bash
VAR='|'
./while.sh $VAR tee ls.out
było równoważne (tak samo interpretowane )
#!/bin/bash
./while.sh | tee ls.out
Jak zrobić żeby w skropcie bash-owym "pipe" | wywołać ze zmiennej.
#!/bin/bash
VAR='|'
./while.sh $VAR tee ls.out
było równoważne (tak samo interpretowane )
#!/bin/bash
./while.sh | tee ls.out
Spróbuj tak:
#!/bin/bash
VAR='|'
eval "./while.sh $VAR tee ls.out"
szweszwe napisał(a):
Spróbuj tak:
#!/bin/bash VAR='|' eval "./while.sh $VAR tee ls.out"
Dziękuję - działa