I have an alias like this:
So when I invoke it like this:
Then this will be executed:
But there is a problem when I redirect the output of the alias.
Now this will be executed:
But I want this to be executed instead:
Are there any ways around this problem?
Basically I want to be able to...
Read more
Code:
testalias = (cmd1 %$ | cmd2)
So when I invoke it like this:
Code:
testalias 1 2 3
Then this will be executed:
Code:
(cmd1 1 2 3 | cmd2)
But there is a problem when I redirect the output of the alias.
Code:
testalias 1 2 3 > file1
Now this will be executed:
Code:
(cmd1 1 2 3 > file1 | cmd2)
But I want this to be executed instead:
Code:
(cmd1 1 2 3 | cmd2) > file1
Are there any ways around this problem?
Basically I want to be able to...
Read more