October 22nd, 2013, 02:39 PM
Help with Alias in Unix
I am having some difficulties with my assignment about using alias in Unix. Any help or assistance would be greatly appreciated.
Create an alias called whopw
alias whopw='ypcat passwd | grep `whoami`'
When executed, will the alias output your entry from the ypcat passwd file?
-Thanks in advance.
October 22nd, 2013, 03:31 PM
Dare I ask what happened when a) you tried the command directly and b) when you tried it via the alias?
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc