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.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Linux
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
3. Solaris
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
4. UNIX for Dummies Questions & Answers
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
5. SuSE
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
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
7. Shell Programming and Scripting
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
8. UNIX for Beginners Questions & Answers
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
9. Solaris
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
COL(1) BSD General Commands Manual COL(1)
NAME
col -- filter reverse line feeds from input
SYNOPSIS
col [-bfhpx] [-l num]
DESCRIPTION
The col utility filters out reverse (and half reverse) line feeds so that the output is in the correct order with only forward and half for-
ward line feeds, and replaces white-space characters with tabs where possible. This can be useful in processing the output of nroff(1) and
tbl(1).
The col utility reads from the standard input and writes to the standard output.
The options are as follows:
-b Do not output any backspaces, printing only the last character written to each column position.
-f Forward half line feeds are permitted (``fine'' mode). Normally characters printed on a half line boundary are printed on the fol-
lowing line.
-h Do not output multiple spaces instead of tabs (default).
-l num Buffer at least num lines in memory. By default, 128 lines are buffered.
-p Force unknown control sequences to be passed through unchanged. Normally, col will filter out any control sequences from the input
other than those recognized and interpreted by itself, which are listed below.
-x Output multiple spaces instead of tabs.
In the input stream, col understands both the escape sequences of the form escape-digit mandated by Version 2 of the Single UNIX
Specification (``SUSv2'') and the traditional BSD format escape-control-character. The control sequences for carriage motion and their ASCII
values are as follows:
ESC-BELL reverse line feed (escape then bell).
ESC-7 reverse line feed (escape then 7).
ESC-BACKSPACE half reverse line feed (escape then backspace).
ESC-8 half reverse line feed (escape then 8).
ESC-TAB half forward line feed (escape than tab).
ESC-9 half forward line feed (escape then 9). In -f mode, this sequence may also occur in the output stream.
backspace moves back one column (8); ignored in the first column
carriage return (13)
newline forward line feed (10); also does carriage return
shift in shift to normal character set (15)
shift out shift to alternate character set (14)
space moves forward one column (32)
tab moves forward to next tab stop (9)
vertical tab reverse line feed (11)
All unrecognized control characters and escape sequences are discarded.
The col utility keeps track of the character set as characters are read and makes sure the character set is correct when they are output.
If the input attempts to back up to the last flushed line, col will display a warning message.
ENVIRONMENT
The LANG, LC_ALL and LC_CTYPE environment variables affect the execution of col as described in environ(7).
EXIT STATUS
The col utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
colcrt(1), expand(1), nroff(1), tbl(1)
STANDARDS
The col utility conforms to Version 2 of the Single UNIX Specification (``SUSv2'').
HISTORY
A col command appeared in Version 6 AT&T UNIX.
BSD May 10, 2015 BSD