Sail E0 Webinar
Question

Code 1:
The following 3 commands are executed at the shell in
order
grep main a.c > grepresult &
wc-l < grepresult &
rm grepresult &
Code 2: The following command is executed
grep main a.c | wc-l



Options:
A .  Code 1 is correct
B .  Code 2 is correct
C .  Both are correct
D .  Both have some pitfalls
Answer: Option C



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers