Visit Our UNIX and Linux User Community


korn shell question


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting korn shell question
# 1  
Old 01-27-2006
Question korn shell question

Hi all,

I am trying to tweak my ksh , i am running V: Version M-11/16/88i

I have my Backspace and up/down arrows working using the following code in my ~/.profile file.

set -o emacs

alias __A=$(print '\020' )
alias __B=$(print '\016' )
alias __C=$(print '\006' )
alias __D=$(print '\002' )

Question: Been searching around with no luck, anyone know how to map tab-completion, I know it works by pressing ESC ESC. Is there anyway to map the ESC ESC to the TAB Key??? Trying alias, key-binding, not sure what I'm doing Smilie

Thanks in advance! Smilie
# 2  
Old 01-27-2006
I do not believe that is possible. key bindings arrived in ksh93. I would expect that you won't have much luck with ksh88. I have never tried key bindings but I think it should be possible with that feature.
# 3  
Old 01-27-2006
Other Options

Thanks for the reply,

If I tried cat /etc/shells and the file cannot be opened , does this mean I only can use ksh?

As a CSE student we always used Bash, and now I just got a new job and this was the default shell, so I wanted to use it, I am not sure if I have to or not.

Again, thanks for any help in advance.
# 4  
Old 01-27-2006
/etc/shells has little to do with whether or not you can use bash. /etc/shells is used by ftp and maybe by chsh. If you don't have bash on your system adding bash to /etc/shells won't help much. Type "bash" and see if you have it. But you should ask your system administrator. bash could be in some unusual location. And your company could have some odd rules... we oftem see a "no freeware" rule mentioned in various posts.

If /etc/shells does not exist, everything will act as if it did exist with a default list of shells. That list can vary from system to system. "man getusershell" will usually have that list.
# 5  
Old 02-22-2006
korn shell question

Hi all,
I want to write a korn shell script that takes as input a direcity and makes a copy of pointers for the whole hierarchy of the input directory.
For example If i have a directory names foo and i want to copy it the command must be ksh foo goo (ksh -source -destination).The subdirectories must be created of the source and the files in that directory must be linked...
For linkage I try that (ln -s file-name link-name) that creates a pointer from directory to a file.
I want to bulid all hierarchy of that folder by creating all the subdirectories and linking all the files...
Thanx Smilie

Previous Thread | Next Thread
Test Your Knowledge in Computers #743
Difficulty: Medium
The AMD Optimizing C/C++ Compiler (AOCC) is a free, open source, optimizing compiler from AMD.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

korn shell remove files question

how do you show each filename in a giving directory and delete the specific file in korn script i was thinking using ls rm ? but i cant make it work (0 Replies)
Discussion started by: babuda0059
0 Replies

2. Shell Programming and Scripting

Question about a simple Korn script

Hi to everybody! I want to write a simple script in ksh that decrypts and encrypts using the DES algorithm. There is no builtin function in UNIX : i have found only a function in openssl but i don't understand how to use it. The script must accept in input the plaitext and the DESKEY in... (2 Replies)
Discussion started by: kazikamuntu
2 Replies

3. AIX

AIX 4.2 Korn shell and grep question

Ho do I find out the verion of the Kron shell on my client`s system ? There is no one to ask. They are not knowledged enough (hard to believe but yes). Also, on that AIX 4.2, I am trying to figure out how to do a grep using a search patter like below but does not seam to work. The '*' do... (11 Replies)
Discussion started by: Browser_ice
11 Replies

4. Shell Programming and Scripting

Korn shell and awk question

I am modifying a Korn shell script in using the Exceed (Solaris 10 environment). My task is to read in a .txt file with dates arranged like this (01-Sep-2006). I am to read each line and take the dates, compare them to a benchmark date and depending on if it is older than the date or the date and... (6 Replies)
Discussion started by: mastachef
6 Replies

5. Shell Programming and Scripting

Korn Shell Coprocess Performance Question

I am wracking my brains over this. I am trying to use a Korn Shell script to execute an Oracle PL/SQL procedure, using the Oracle command line interface (sqlplus). The script starts sqlplus in a coprocess, and the two processes communicate using a two-way pipe. The bgnice option is off, so both... (8 Replies)
Discussion started by: Mark Puddephat
8 Replies

6. Shell Programming and Scripting

Korn Shell Loop question

I'm needing help with assigning variables inside a while loop of ksh script. I have an input text file and ksh script below and I'm trying to create a script which will read the input file line by line, assign first and second word to variables and process the variables according to the contents. ... (4 Replies)
Discussion started by: stevefox
4 Replies

7. Shell Programming and Scripting

how to convert from korn shell to normal shell with this code?

well i have this code here..and it works fine in kornshell.. #!/bin/ksh home=c:/..../ input=$1 sed '1,3d' $input > $1.out line="" cat $1.out | while read a do line="$line $a" done echo $line > $1 rm $1.out however...now i want it just in normal sh mode..how to convert this?... (21 Replies)
Discussion started by: forevercalz
21 Replies

8. Shell Programming and Scripting

AWK question in the KORN shell

Hi, I have two files with the following content: gmrd.txt 235649;03;2563;598 291802;00;2563;598 314634;00;235649;598 235649;03;2563;598 393692;00;2563;598 411805;00;2563;598 411805;00;2563;598 235649;03;2563;598 414037;00;2563;598 575200;00;2563;598 70710;00;2563;598... (11 Replies)
Discussion started by: penfold
11 Replies

9. Shell Programming and Scripting

Question about Korn Shell

In Korn Shell, can you use "go to" statements? Would you then put paragraph names with a colon? For example, would you specify "goto para1" and then have the paragraph with the label para1:? I am getting an error message when Idid this. I have my paragraph name 'clsbooks:' and I get... (13 Replies)
Discussion started by: Latha Nair
13 Replies

10. Shell Programming and Scripting

Question variables Korn

I'm using the following command to test for certain characters in a script echo "${1}" | grep '\$' if (( ${?} == 0 )) then testing this script on the command line I have ksh -x script1.sh "xxxx$xxxx" this works fine but when I want to use ksh -x script1.sh "xxxx $xxx" the... (1 Reply)
Discussion started by: frank
1 Replies

Featured Tech Videos