how to install this utility CC k[ESC}


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to install this utility CC k[ESC}
# 1  
Old 07-13-2005
how to install this utility CC k[ESC}

I am quite used to program this way and its frustrating when you find
that the utility is not there anymore...in the new system.
I used give this in the command line

CC k[ press ESC ]
this used to give all the files starting with k one by one as I keep hitting the return key.

like if I had 10 files starting from k1 to k10

then if I give this in the command line

CC k[ hit ESC key]

first it gives

CC k1
then it gives ( after I scroll up or down with the arrow key)
CC k2
if I use the arrow key again it will
change to
CC k3

I want this utility again, I dont know if this has something to do
with the .cshrc file.
but that is my only guess.
I was using Solaris 8 before, now solaris 9.

Can someone tell me how to get this utility again?

it not only works with CC it works with many other commands
like cat or rn etc...
I do not want an alternative solution for this since I know
ls k* will give me all file names starting with k and I can compile them one by one
or I can use find or piping to do the same.

but doing this at the prompt was easier

$CC my [esc]
Smilie
instead of
$CC myworld.c
Smilie
# 2  
Old 07-13-2005
From what you describe, it sounds like you had a different default shell in Solaris 8 - csh doesn't have a escape k option to my knowledge. Ksh does.

Try the following:
ksh -o vi

See if that is what you were looking for. Then either change your default shell to ksh, or just run that command to go into a ksh.
# 3  
Old 07-13-2005
my question is different

this is to do with command terminal and not vi editors,

try this simple thing in your terminal
if you have a lots of .c files (some starting with letter n or any letter you want, create a new.c if you want) then at the prompt

CC n[hit ESCAPE]

then in the terminal prompt you will see

CC new.c

if that is the only file starting with n

I had this utility earlier now I dont have it. thanks for answering my question but I tried going into ksh, it did not work.

I hope you understand what I want. thanks anyway.
# 4  
Old 07-13-2005
Did you try doing what RTM told you?

This does have to do with vi and you should be in a ksh shell.
# 5  
Old 07-13-2005
Again I say that I'm very rusty with csh, but try
Code:
user@host> set filec

If that works for you you can add "set filec" to ~/.cshrc
# 6  
Old 07-14-2005
thanks

thanks set filec worked.

the ksh did not work.

thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Esc-k and command history

Good afternoon, I am an Oracle DBA that is a bit stumped on the sudo and viewing historical commands. In the past on solaris 10 we would all first use our own username and password to putty to our unix box. Then in our /home/"my username"/.profile file it is setup to use sudo -u oracle for us to... (5 Replies)
Discussion started by: cptkirkh
5 Replies

2. UNIX for Beginners Questions & Answers

File name starts with esc character.

How can I refer to a file named esc[G ? I need to delete it or move it. TIA (5 Replies)
Discussion started by: wbport
5 Replies

3. Shell Programming and Scripting

Esc - key

hi i remember sometime back working in unix, when u dont recall a complete file name..u hit ESC key couple of times and actual complete name of that file which u looking for , gets visible For this to be enabled , do we need to make any entry in .profile file. In my current project, am... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

4. UNIX for Dummies Questions & Answers

How to invoke ESC+K

How to invoke ESC+K to get recent commands in Korn Shell. In some of the unix machine ESC+K is available and in some machines, it does not work. All of the machines that I work have Korn shell. (5 Replies)
Discussion started by: bobbygsk
5 Replies

5. SuSE

xterm does not recognize CSI / ESC[

Hi all, I try to use my xterm from SUSE 11.1 as vt100/200 emulator. Problem is that my application sends the CSI as 8bit (0x9b) instead of the ESC+[ commands. With the default settings, xterm doesn't recognize this character as CSI, but prints an inverted question mark CSI works when I... (0 Replies)
Discussion started by: tritigr
0 Replies

6. UNIX for Dummies Questions & Answers

unable to install xdiff utility in Ubuntu7.10

Hello Experts, Recently I tried to install xdiff program in my Ubuntu7.10. I downloaded xdiff-ext-0.2.0 from Download xdiff-ext 0.2.0 for Linux - Compare files easily - Softpedia. Then I untared the tar ball and did the following steps- # cd xdiff-ext-0.2.0/ # ./configure # make # make check... (1 Reply)
Discussion started by: adc22
1 Replies

7. Solaris

Epson ESC/P2 on solaris prints LD

I am hoping someone can help me with this little riddle. I have an oldish Epson ESC/P2 which I connected to a solaris10 box, with 2 queues, 1 with the solaris print filter so I can print from Solaris (works fine), and a second raw queue so that windows machines can print to it. The raw queue... (0 Replies)
Discussion started by: gdommett
0 Replies

8. Linux

ESC sequence on RHEL5

We have migrated one of servers from RH 2.1 to RHEL5 , some of the scripts on our machine use escape sequence to print output . Om RH 2.1 we were using echo echo "\033ERROR, which would give output ERROr in red . However the script does not work properly with RH5 and gives \033 as output . I... (2 Replies)
Discussion started by: amit1_x
2 Replies

9. Shell Programming and Scripting

append esc string

I have a request that is simple, but I can't figure out how to do it. I have a unix file that I want to append the following string to the front of the file <esc>&l1O<esc>(0U<esc>(s0p16.66h8.5v0s0b0T and an <esc>E to the end. I know that I could do something like cat... (2 Replies)
Discussion started by: beilstwh
2 Replies
Login or Register to Ask a Question