Article View: alt.uu.comp.os.linux.questions
Article #361Re: Login Count
From: amp
Date: Sun, 31 Dec 2000 21:17
Date: Sun, 31 Dec 2000 21:17
26 lines
1949 bytes
1949 bytes
Try this... echo "you have logged in `last $USER | wc -l` times" you have logged in 30 times the ` is the grave under the tilde (~) key On Wed, 27 Dec 2000 06:19:56 GMT, cjm100@home.com <cjm100@home.com> wrote: >Anyone know a command i can put in a bash shell script to tells you the >number of times you have logged in before now. This script would be one >that is executed at login. >Thanks > > > -- TANSTAAFL, amp@pobox.com http://www.zeugma.nu/ Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic.
Technical Details
Message-ID:
<slrn94v3gi.j57.zeugma@www.zeugma.nu>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news2.rdc2.tx.home.com.POSTED!not-for-mailReferences:
<gSf26.880911$8u4.17070362@news1.rdc1.bc.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff9be,30377ec8a0ef37c5 X-Google-Attributes: gidff9be,public X-Google-Thread: 107b38,30377ec8a0ef37c5 X-Google-Attributes: gid107b38,public X-Google-Thread: 11024c,30377ec8a0ef37c5 X-Google-Attributes: gid11024c,public X-Google-Thread: 10a997,30377ec8a0ef37c5 X-Google-Attributes: gid10a997,public X-Google-Thread: 100b1f,30377ec8a0ef37c5 X-Google-Attributes: gid100b1f,public X-Google-ArrivalTime: 2000-12-31 13:26:04 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news2.rdc2.tx.home.com.POSTED!not-for-mail From: zeugma@www.zeugma.nu (amp) Newsgroups: alt.uu.comp.os.linux.questions,comp.os.linux.help,comp.os.linux.questions,comp.os.linux.redhat,it.comp.linux Subject: Re: Login Count References: <gSf26.880911$8u4.17070362@news1.rdc1.bc.home.com> Reply-To: amp@pobox.com Message-ID: <slrn94v3gi.j57.zeugma@www.zeugma.nu> User-Agent: slrn/0.9.6.2 (Linux) Lines: 26 Date: Sun, 31 Dec 2000 21:17:57 GMT NNTP-Posting-Host: 24.7.237.246 X-Complaints-To: abuse@home.net X-Trace: news2.rdc2.tx.home.com 978297477 24.7.237.246 (Sun, 31 Dec 2000 13:17:57 PST) NNTP-Posting-Date: Sun, 31 Dec 2000 13:17:57 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster