The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-20-2002
kymberm kymberm is offline
Registered User
  
 

Join Date: Mar 2002
Location: Texas
Posts: 120
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.
  #2 (permalink)  
Old 09-20-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Check out this post for answer
  #3 (permalink)  
Old 09-20-2002
hassan2 hassan2 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2002
Location: London, England
Posts: 262
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
  #4 (permalink)  
Old 09-20-2002
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0