How can I get two commands in one alias?
In my exaple it only display the current date.
alias two='cal | date'
How can I get two commands in one alias?
In my exaple it only display the current date.
alias two='cal | date'
'cal | date' seems to be correct. output of cal command is piped to date command. Is this what you wanted to do? Or something else?
the alias works fine for me
Your syntax looks correct, but what is "cal | date" supposed to do?
I want to first show a calendar and then show the date.
Is that something I can do with a pipe, or am I totaly wrong??
No pipe is necessary for that. Try
alias datecal='cal; date'
October 2006
S M Tu W Th F S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Tue Oct 17 10:52:42 EDT 2006
Perfect, just what I was looking for.. Thank�s