Telling us that you're using /bin/sh without telling us what operating system you're using doesn't really tell us all that much. On many systems /bin/sh is a link to another shell (e.g., bash, dash, or ksh). On at least one system /bin/sh is an honest to God 1980's Bourne shell. (When starting a thread on unix.com, please always tell us what operating system and shell you're using. Having some idea about the environment you're using will help us give you answers that stand a better chance of working in your environment.) Unfortunately, I have no idea what shell underlies /bin/sh on SCO systems.
On systems where /bin/sh is a link to a POSIX standards-conforming shell, you could try issuing the command:
to turn on vi command line editing mode. Once that has been done, if you hit the <escape> key while entering a command, you can use the usual vi editor commands to erase, replace, insert, and substitute text on that line and then hitting the <enter> or <retturn> key will submit that line to the shell for processing.
I was wondering if there was a way to clear a wrongly entered character. hitting backspace puts in a different character rather than removing the character.
This means that your terminal and the system disagree on what character a backspace is.
Yes -- but what is your terminal? A permanently wired keyboard and monitor directly attached to the SCO machine? An instance of PUTTY running on Windows? A smartphone app? A printing teletype circa 1977? A generic beige VT100 attached to the serial port? Some sort of web gateway? Other?
Yes -- but what is your terminal? A permanently wired keyboard and monitor directly attached to the SCO machine? An instance of PUTTY running on Windows? A smartphone app? A printing teletype circa 1977? Some sort of web gateway? Other?
Monitor and keyboard at the SCO machine. Putty on Windows 10 connecting over the network. QVTterm on a Windows 2000 VB image.
All 3 have the same results.
Thank you. Try stty erase funny-character, where funny-character is the strange char you get hitting backspace. Just a temporary solution but if it works, that means SCO is configured to use the wrong kind of terminal.
I had myself screwed up. Its not the backspace that puts in special characters.
Its when you arrow left.
Like if I arrow over to replace the s with a t
I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file.
Here is the file.
<!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Hello,
The problem I met is the conflict between the default command /usr/bin/sometools, which is an very old version at system setup, and an updated one I have installed in $HOME/download-software/sometools
How do I tell a third program to use the customized sometools instead of the default... (6 Replies)
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hello All,
I had just a question about my Bash Script I'm currently writing.
The script I have writes some text to a output file. After I write to the output file I send the file to another server to do
some stuff with it.
After the file sends in the script, I don't need the output/txt... (4 Replies)
my script is:
awk '...mycode...' file1.txt > file2.txt
and i want to overwrite file2.txt eachtime I run this script. but it says:File exists! :( I have tried
awk '...mycode...' file1.txt >| file2.txt but it again says:Missing name for redirect! :confused::confused:
what is this? (2 Replies)
Hi,
i have a file ver.sql with the following contents , Here i need to put a in the next line of END statment .
So iam doing the following
D:\>type ver.sql
begin
ctxsys.driimp.set_value('STOP_WORD','yours');
ctxsys.driimp.set_object('STORAGE','BASIC_STORAGE',2);... (1 Reply)
Hi
im using the following to copy a file to a directory, the user being prompted to overwrite if the file already exists in that directory,
cp -i myfile /home/brief/bin2
but this reveals the path of the directory when being prompted to overwrite (below)
cp: overwrite... (2 Replies)