What do you think would happen if you invoked the following command on the shell? Why?
cat infile | sort | wc -l > infile
It would seem that you've created an infinite loop, where the commands output would be read as its input too, but with the way Unix and Linux shells work, this works fine, with the original contents of infile being sorted and counted, then overwritten by the result of the command.
You might also like to view...
A counter-controlled loop can be either a pretest loop or a posttest loop.
Answer the following statement true (T) or false (F)
When the first ________ diagram is made, inputs and outputs are specified and these remain constant throughout all of the following diagrams.
A) concept B) user interface C) design D) context
To import data from Excel to Access, you would begin by clicking the ____.
A. Relationships button B. Foreign key field C. External Data tab D. Enforce Referential Integrity button
What is a weighted graph?
What will be an ideal response?