![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using of Top command as script parameter | elthox | Shell Programming and Scripting | 4 | 01-31-2007 01:21 PM |
| replacing a string in a file with command line parameter | chiru_h | Shell Programming and Scripting | 5 | 08-03-2006 09:34 AM |
| insert pipe in the finish of the line | DebianJ | UNIX for Advanced & Expert Users | 3 | 04-04-2006 07:54 AM |
| Command line parameter for C program | Wing m. Cheng | High Level Programming | 3 | 05-18-2002 09:43 AM |
| Command Line width parameter | Scoogie | UNIX for Dummies Questions & Answers | 2 | 02-08-2002 05:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
using tab to finish command line parameter
Anyone know how to set it up so that when at command line in unix (specifically solaris 2.5.1), and you hit the tab it will finish the command with the nearest file that matches? AND how to set it up so using up and down arrows access your previous commands?
Thanks for all the help here, i've had all my questions answered pretty well and appreciate the help. |
|
||||
|
you need to be korn shell environment.
To be in korn shell environment issue ksh then set vi by issue set -o vi Now you should be able to use the ESC key followed by - key to display the previous type word or use could use ESC key followed by k key |
|
|||||
|
For up and down arrow in ksh, put the following into your .profile
set -o emacs # Arrows # alias __A=^P # uparrow alias __B=^N # down arrow alias __C=^F # left arrow alias __D=^B # right arrow Found at http://www.experts-exchange.com/Oper..._20140984.html although it places it in .env Oh, forgot to mention - when you vi the .profile and want to put the code in, you have to do a Control-V Control-P to get a Control-P in the file. Just putting ^ P does not work Last edited by RTM; 09-20-2002 at 04:21 PM.. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|