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
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
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
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
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
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
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.
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
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
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
LEARN ABOUT DEBIAN
bnchat
BNCHAT(1) BNETD User's Manual BNCHAT(1)
NAME
bnchat - Battle.net text-based chat client
SYNOPSIS
bnchat [options] [servername [serverport]]
DESCRIPTION
bnchat is a simple Battle.net client emulator that can be used as a minimal chat client with bnetd(1) in order to test certain aspects of
the server configuration or to do server administration from the Unix command line. It is also compatible with FSGS servers, but has diffi-
culty with real Battle.net servers.
If no servername is specified, localhost is assumed. If no serverport is specified, 6112 is assumed.
OPTIONS
-a --ansi-color
Allows bnchat to use ANSI terminal color escapes to make things more readable. You must be using a terminal compatible with VT100
positioning and ANSI color codes. The program will not attempt to determine your terminal type.
-b Causes bnchat to emulate a Brood Wars client.
-c --change-password
Causes bnchat to prompt for a new login password on the bnetd(1) server.
--client
Causes bnchat to emulate a specific client. The following client tags are recognized: DRTL DSHR STAR SSHR SEXP W2BN. There are
short options which may be used instead for the common clients.
-d Causes bnchat to emulate a Diablo client.
-h --help --usage
Print usage information and exit.
-k --cdkey
Causes bnchat to report an alternate key to the bnetd(1) server.
-o --owner
Causes bnchat to report an alternate owner to the bnetd(1) server.
-n --new-account
Causes bnchat to prompt to create a new player account on the bnetd(1) server.
-s Causes bnchat to emulate a Starcraft client.
-v --version
Print its version number and exit.
-w Causes bnchat to emulate a Warcraft II BNE client.
NOTES
The terminal width is attempted to be determined at runtime but if it does not work you may need to try running resize(1). As a final act
of desperation you can try setting the COLUMNS environmental variable.
If SIGWINCH and its associated ioctl(2) are supported on your system, resizing the window while the program is running should immediately
update width of the entry line.
The current version is available with the bnetd distribution at:
http://www.bnetd.org/
BUGS
This program assumes that the terminal will move to the beginning of the current line when the carriage return character (^M) is printed.
It also assumes the backspace character (^H) will move one column to the left that character printed after that will replace those already
on the screen.
The terminal settings are not consulted for keybindings. The following are assumed:
^H delete the character to the left of the cursor
^J accept current line
^M (return)
accept current line
^T transpose the last two characters
^W delete word to the left of the cursor
^U delete the whole input line
^[ (escape)
cancel the current input line
^? (delete)
delete the character to the left of the cursor
SEE ALSO
bnetd(1)
AUTHOR
Ross Combs (ross@bnetd.org)
BNETD
09 April, 1999 BNCHAT(1)