Hi! You can find the notation here: http://www.shelldorado.com/scripts/cmds/einlog.txt Also I found it in my reference book: http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764544977.html
Also there are lot of concepts which I need to know like what is this line doing? echo >&2 "$PN - keep a log file of login and logout time stamps, $VER As per my knowledge 2 is the file descriptor and >&2 redirects any O/P to this file. But here is something else going on which I am not able to understand. Thanks and Regards! On Thu, Aug 9, 2012 at 9:10 PM, Sharad Birmiwal <[email protected]>wrote: > On 12-08-09 11:39 AM, vivek poddar wrote: > >> Hi! >> >> I am new to shell scripts but trying to learn it by heart. Recently I came >> through a confusing part, there are two ways to assign values to a >> variable: >> 1. : ${HOME:-$HOME} >> 2. HOME=$HOME >> > > Hi Vivek, > > I have never encountered the first notation. Can you provide a reference. > I might be able to help after looking at the documentation. > > > Thanks, > Sharad > > -- > Mailing list guidelines and other related articles: > http://lug-iitd.org/Footer > -- -*- *Vivek Poddar* -*- *Technical consultant (OpenERP)* *Blog:http://vivekimsit.blogspot.in/ * -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
