Answer the question
In order to leave comments, you need to log in
How to redirect input from a pipeline?
Hello!
Can you please tell me how can I redirect the pipeline to the while loop?
In the code below, the pipeline is executed after the while, but we want it to be executed before the loop.
while read line
do
echo $line
done < sorted | cut -f 1 -d ' ' | uniq
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question