I have a file, with the following content:
2) Wiegley Maths 90
3) Artur Biology 87
4) Drew English 85
5) Phils History 89
I store it in a file, called marks.txt
.
In shell, I ran some operations with sed
and awk
(with xfce4 terminal emulator)
awk '{print $3 "\t" $4}' marks.txt | sed -e '/^E/d' > foo.txt | cat foo.txt
When I execute the same command fast (arrow up and enter), it gives me sometimes the output of the file foo.txt
. But sometimes it gives me no output, when repeating the same command fast.
I fail to understand this, what it seems as a random behaviour, from my shell. Can anyone explain why cat
gives sometimes the output, when I repeat the same command fast? Would it not be waiting on the output of the awk
and sed
first?