Auto completion of file name in KSH.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Auto completion of file name in KSH.
# 1  
Old 10-27-2011
Auto completion of file name in KSH.

Hi All,

I am using SunOS 5.8 verison with KSH shell. My problem is I am not getting auto completion of file name on pressing of TAB or ESC key.

While pressing ESC key , '^[' is getting printed .
TAB is printing doin nothin but jus printing tab.

What should I do to get auto completion of file name on pressing of ESC or TAB.?
Please help me.
# 2  
Old 10-27-2011
Try:
Code:
set -o vi

# Then use:
ESC then k
ESC then j

# 3  
Old 10-27-2011
Using ksh?
Once you set editor to vi:
command line:
Code:
set -o vi

or .profile
Code:
 export EDITOR=/usr/bin/vi

or in .kshrc
Code:
export  FCEDIT=/usr/bin/vi

You will see it work...You use Esc + \
(NB I mean type as if you wanted to print \, for me it would be Alt Gr + \, so You would have to first Escape by pressing Esc then the combination Alt Gr + \)

Last edited by vbe; 10-27-2011 at 10:16 AM.. Reason: NB
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Check the file processed Completion

Hi, I have a wierd requirement where i need to check for a file transfered to my Server and once it is completed i need to start processing my jobs. My server is AIX 6.0 and i want to know is there some way in unix i can keep on checking the file and once it is completed successfully i can... (5 Replies)
Discussion started by: prasson_ibm
5 Replies

2. Cybersecurity

Web Server Allows Password Auto-Completion

Hi, After running 'nessus' tool to find the Vulnerability in server OS - RHEL 5 we got " Web Server Allows Password Auto-Completion (PCI-DSS variant)" link for description provided by tools - report Nessus Plugins | Tenable Network Security I have checked - Their is only... (1 Reply)
Discussion started by: saurabh84g
1 Replies

3. Shell Programming and Scripting

Identifying the file completion

Hi, A script is running for multiple databases so data is also being populated for multiple DBs in a.txt file. I need to rename this file once all the data is populated. Kindly suggest me How can I check once file is populated completely before renaming? Thanks in advance. (3 Replies)
Discussion started by: ravigupta2u
3 Replies

4. UNIX for Dummies Questions & Answers

Auto Complete variable names in KSH

Hi, I use KSH a lot. I wanted to know if I can auto-complete a Variable name in the environment. I know this is possible in tcsh. I use the vi mode to edit commands on command prompt. Any help would be much appreciated. Thanks..!! (4 Replies)
Discussion started by: grep_me
4 Replies

5. Shell Programming and Scripting

File name auto completion not working in KSH.Please help

Hi All, I am using SunOS 5.8 verison with KSH shell. My problem is I am not getting auto completion of file name on pressing of TAB or ESC key. While pressing ESC key , '^[' is getting printed . TAB is printing doin nothin but jus printing tab. What should I do to get auto completion of... (3 Replies)
Discussion started by: Sooraj_Linux
3 Replies

6. Shell Programming and Scripting

link scripts to file extensions for tab completion

Is there a way to link a script in my ~/bin with file extension priority for tab completion? for example, if the script I have could only look at .tex files, and I have 6 files in the same directory with the same name, but different extensions: index.tex index.dvi index.toc ... etc... it... (0 Replies)
Discussion started by: pyramation
0 Replies

7. UNIX for Dummies Questions & Answers

command completion in .sh or .ksh in AIX environment

How do you user command completion in .sh or .ksh in AIX environment? I know you can do it by hitting <esc><esc> in bash, but how do you do it in bourne or korn shell in AIX 5.3 environment? Thanks in advance. (1 Reply)
Discussion started by: pdtak
1 Replies

8. Shell Programming and Scripting

Ensure the file completion ?

Hi, I would like to copy a file from one location to another. But that particular file is not fully loaded. I like to copy a file once it's fully loaded or complete file. How to ensure whether file is fully loaded or complete file?. -Thambi (5 Replies)
Discussion started by: thambi
5 Replies

9. Shell Programming and Scripting

file name completion

I'ld like to enable file name completion in ksh88 on AIX 5.2. My terminal is set to xterm. I've set the shell editor to emacs and ampped the arrow keys. Is there a way to map the tab key to a command like ESC= or any other file name completion command in emacvs that I may be not aware of since I'm... (1 Reply)
Discussion started by: rein
1 Replies
Login or Register to Ask a Question