From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dermot Paikkos Newsgroups: gmane.os.tru64.managers Subject: OT: Korn shell questions Date: Wed, 04 Dec 2002 14:14:31 +0000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3DEE0DC7.19191.1053FFD@localhost> Reply-To: dermot@sciencephoto.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1039011103 806 80.91.224.249 (4 Dec 2002 14:11:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2002 14:11:43 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18JaF8-0000BN-00 for ; Wed, 04 Dec 2002 15:11:14 +0100 Original-Received: (qmail 14161 invoked by uid 5); 4 Dec 2002 14:13:24 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 14152 invoked by uid 49493); 4 Dec 2002 14:13:24 -0000 Original-Received: from dermot@sciencephoto.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(0.6/5.0):. Processed in 0.391319 secs); 04 Dec 2002 14:13:24 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 4 Dec 2002 14:13:23 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6L00K40M67B8@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 04 Dec 2002 09:13:23 -0500 (EST) Original-Received: from helios.sciencephoto.co.uk (helios.sciencephoto.co.uk [194.200.237.129]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6L00IK2M5YNI@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 04 Dec 2002 09:13:11 -0500 (EST) Original-Received: from dione.sciencephoto.co.uk ([194.200.237.140] helo=dione) by helios.sciencephoto.co.uk with esmtp (Exim 3.16 #3) id 18JaHR-0002xF-00 for tru64-unix-managers@ornl.gov; Wed, 04 Dec 2002 14:13:37 +0000 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Pegasus Mail for Windows (v4.01) Content-description: Mail message body Priority: normal Xref: main.gmane.org gmane.os.tru64.managers:2638 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2638 Hi Managers, Sorry if this is a bit off topic but it seemed a good place to start. I have just moved from csh to ksh and am try to acclimatize. There are a couple of features that I am really missing but think there is a similar functions in the korn shell. 1) Recall past command. Is there a similar function to !n (where n is the history number) in ksh? 2) Filename completion. I read that ESC ESC (just like the csh) should do filename completion - this doesn't seem to be working for me. My term is Putty for win32. Does anyone know why? 3) Re-use past arguments. One of my favourite recall commands was !$ to get the last argument from my previous command. EG: >ls /var/adm/syslog.dated/current > cd !$ (puts me in /var/adm/syslog.dated/current Can you do this, or something similar, in ksh? Thanx. Dp. ~~ Dermot Paikkos * dermot@sciencephoto.com Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668