Sponsored Content
Full Discussion: Command line overwrite
Operating Systems SCO Command line overwrite Post 303031167 by Corona688 on Friday 22nd of February 2019 10:25:27 AM
Old 02-22-2019
Quote:
Originally Posted by steveo314
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.

What is your terminal?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Overwrite

if i want to pipe output to a file, say, cat abc.dat > abc.txt, how do i make it replace the existing file? (9 Replies)
Discussion started by: Duckman
9 Replies

2. UNIX for Dummies Questions & Answers

overwrite problem

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)
Discussion started by: ali999
2 Replies

3. Shell Programming and Scripting

sed command to overwrite

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)
Discussion started by: mhdmehraj
1 Replies

4. UNIX for Dummies Questions & Answers

overwrite problem

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)
Discussion started by: gc_sw
2 Replies

5. Shell Programming and Scripting

Better to Delete or Overwrite

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)
Discussion started by: mrm5102
4 Replies

6. Shell Programming and Scripting

sed command to replace a line at a specific line number with some other line

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)
Discussion started by: vivek d r
3 Replies

7. Shell Programming and Scripting

sed command to replace a line in a file using line number from the output of a pipe.

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)
Discussion started by: vivek d r
1 Replies

8. Shell Programming and Scripting

Overwrite bash system command

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)
Discussion started by: yifangt
6 Replies

9. Shell Programming and Scripting

Overwrite specific column in xml file with the specific column from adjacent line

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)
Discussion started by: rk4k
2 Replies
tset(1) 						      General Commands Manual							   tset(1)

NAME
tset, reset - terminal-dependent initialization SYNOPSIS
[options] [ident] [test baudrate] [type] DESCRIPTION
sets up the terminal when logging in on an HP-UX system. It does terminal-dependent processing, such as setting erase and kill characters, setting or resetting delays, and sending any sequences needed to properly initialize the terminal. It first determines the type of termi- nal involved, then does the necessary initializations and mode settings. The type of terminal attached to each HP-UX port is specified in the data base. Type names for terminals can be found in the files under the directory (see terminfo(4)). If a port is not wired perma- nently to a specific terminal (not hardwired), it is given an appropriate generic identifier, such as performs a similar function, setting the terminal to a sensible default state. In the case where no arguments are specified, simply reads the terminal type out of the environment variable and re-initializes the termi- nal. The rest of this manual entry concerns itself with mode and environment initialization, typically done once at login, and options used at initialization time to determine the terminal type and set up terminal modes. When used in a startup script for sh(1), or for csh(1) users), it is desirable to give information about the type of terminal that will normally be used on ports that are not hardwired. These ports are identified in as or etc. To specify what terminal type you usually use on these ports, the (map) option flag is followed by the appropriate port type identifier, an optional baud rate specification, and the terminal type. (The effect is to "map" from some conditions to a terminal type; that is, to tell that "If I am on this kind of port, I will probably be on this kind of terminal.") If more than one mapping is specified, the first applicable mapping prevails. A missing port type identifier matches all identifiers. A baudrate is specified as with (see stty(1)), and is compared with the speed of the diagnostic output (which should be the control terminal). The baud rate test can be any combination of and is a synonym for and inverts the sense of the test. To avoid problems with metacharacters, it is best to place the entire argument to within single quotes; users of csh(1) must also put a before any used. Thus, causes the terminal type to be set to an HP 2622 if the port in use is a dialup at a speed greater than 300 baud, or to an HP 2624 if the port is otherwise a dialup (i.e., at 300 baud or less). If the type finally determined by begins with a question mark, the user is asked for verification that the type indicated is really the one desired. A null response means to use that type; otherwise, another type can be entered. Thus, in the above case, if the user is on a plugboard port, he or she will be asked whether or not he or she is actually using an HP 2623. If no mapping applies and a final type option, not preceded by a is given on the command line, that type is used. Otherwise, the identi- fier found in the data base is taken to be the terminal type. The latter should always be the case for hardwired ports. It is usually desirable to return the terminal type, as finally determined by tset, and information about the terminal's capabilities to a shell's environment. This can be done using the option. From sh(1), the command: or using the C shell, (csh(1)): These commands cause to generate as output a sequence of shell commands which place the variable in the environment; see environ(5). Once the terminal type is known, engages in terminal mode setting. This normally involves sending an initialization sequence to the termi- nal, setting the single character erase (and optionally the full line erase or line-kill) characters, and setting special character delays. Tab and new-line expansion are turned off during transmission of the terminal initialization sequence. On terminals that can backspace but not overstrike (such as a CRT), and when the erase character is the default erase character on standard systems), the erase character is changed to Backspace. Options recognizes the following options: Set the erase character to be the named character c; c defaults to what the terminfo database (see terminfo(4)) entry reports to be the character sent by the Backspace key (usually The character c can either be typed directly, or entered using circumflex notation used here (e.g., the circumflex notation for control-H is Set the kill character to c. The default c is If c is not specified, the kill character remains unchanged unless the original value of the kill char- acter is null, in which case the kill character is set to Report terminal type. Whatever type is decided on is reported. If no other flags are given, the only effect is to write the terminal type on the standard output. Has no effect if used with Generate appropriate commands (depending on current environment variable) to set Suppress transmitting terminal initialization strings. Suppress printing the and messages. Ask the user for the type. Output the strings that would be assigned to in the environment rather than generating commands for a shell. In sh(1), the following is an alternate way of setting Force a read of When is not specified, the terminal type is determined by reading the environment unless some mapping is specified. For compatibility with earlier versions of the following flags are accepted, but their use is discouraged: Report to the user in addition to other flags. Set the erase character to c only if the terminal can backspace. c defaults to what the terminfo database (see terminfo(4)) entry reports to be the character sent by the Backspace key (usually In addition to capabilities described in (see termio(7) and terminfo(4)), the following boolean terminfo capabilities are understood by and and can be included in the terminfo database for the purpose of terminal setup: "Uppercase" mode sets character mapping for terminals that support only uppercase characters. Equivalent to "Lowercase" mode permits input and output of lowercase characters. Equivalent to Set "even parity". Equivalent to Set "odd parity". Equivalent to Set "new line" mode. Equivalent to Set "half-duplex" mode. Equivalent to Set "print tabs" mode. Equivalent to EXTERNAL INFLUENCES
Environment Variables if generate commands; otherwise generate sh(1) commands. the (canonical) terminal name. EXAMPLES
These examples all assume the sh(1). Note that a typical use of in a also uses the and options, and often the or options as well. These options have been omitted here to keep the examples small. Assume, for the moment, that you are on an HP 2622. This is suitable for typing by hand but not for a unless you are on a 2622. Assume you have an HP 2623 at home that you dial up on, but your office terminal is hardwired and known in Suppose you are accessing the system through a switching network that can connect any system to any incoming modem line in an arbitrary combination, making it nearly impossible to key on what port you are coming in on. Your office terminal is an HP 2622, and your home ter- minal is an HP 2623 running at 1200 baud on dial-up switch ports. Sometimes you use someone else's terminal at work, so you want it to verify what terminal type you have at high speeds, but at 1200 baud you are always on a 2623. Note the placement of the question mark and the quotes to protect the and from interpretation by the shell. All of the above entries fall back on the terminal type specified in if none of the conditions hold. The following entry is appropriate if you always dial up, always at the same baud rate, on many different kinds of terminals. Your most common terminal is an HP 2622. It always asks you what kind of terminal you are on, defaulting to 2622. If the file is not properly installed and you want to key entirely on the baud rate, the following can be used: AUTHOR
was developed by the University of California, Berkeley. FILES
port-name to terminal-type mapping data base terminal information data base SEE ALSO
csh(1), sh(1), stty(1), ttytype(4), environ(5). tset(1)
All times are GMT -4. The time now is 08:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy