How would i define a shell alias that reports only the current time using the date command?
How would i define a shell alias that reports only the current time using the date command?
Code:$ alias aa="date +%r" $ aa 11:43:53 PM
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
alias's are defined in the .cshrc file, be careful i changed my cshrc file once with a cls alias and everything went horriby wrong
Monday - what a way to spend a seventh of your life
Just add them to your .profile file....Originally posted by iain
alias's are defined in the .cshrc file, be careful i changed my cshrc file once with a cls alias and everything went horriby wrong
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]