In the xonsh
shell how can I receive from a pipe to a python expression? Example with a find
command as pipe provider:
find $WORKON_HOME -name pyvenv.cfg -print | for p in <stdin>: $(ls -dl @(p))
The for p in <stdin>:
is obviously pseudo code. What do I have to replace it with?
Note: In bash I would use a construct like this:
... | while read p; do ... done