It's often useful to apply a command to each line of STDIN inside a pipeline.
This is easy to do in fish
:
ls | while read line; echo $line; end
It's often useful to apply a command to each line of STDIN inside a pipeline.
This is easy to do in fish
:
ls | while read line; echo $line; end