Say I am in dired and the pointer is on a file called test
which contains:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
I type !
to run a shell command on this file.
I type tac | head -n 2
I get :
1.
2.
But I expected:
20.
19.
As if I has run tac test | head -n 2
in the shell.
What am I misunderstanding and what is the correct way to get the behaviour I wish?