01-16-2011
Invalid Character
Hi,
I am using a Perl script to generate a report file in Linux server. When my input data contains an invalid character which looks like hyphen after that my program is printing junk values in the report. Why that symbol is causing issue and is there a way to tell the server that this is a valid character.
I want to handle it in the server level not in my program.
TIA
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
1 Replies
2. Shell Programming and Scripting
Hi All,
I have a big log file i want to delete all characters (between 350th to 450th characters) starting at 350th character position to 450th character position.
please advice or sample code. (6 Replies)
Discussion started by: rajeshorpu
6 Replies
3. UNIX for Advanced & Expert Users
I want to know how to, given a string like W87151WR71C, if the 4th and 5th character (in this case 15) are greater than 45, then to add 1 to the 3rd character (in this case 7) and assign the revised string the variable name MODSTRING.
Thanks in advance. This is ultimately to grab info from... (6 Replies)
Discussion started by: glev2005
6 Replies
4. Shell Programming and Scripting
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
without using... (1 Reply)
Discussion started by: samupnl
1 Replies
5. Shell Programming and Scripting
Hi All,
Was wondering how I can do the following....
I have a String as follows
"ACCTRL000005022RRWDKKEEDKDD...."
This string can be in a file called tail.out or in a Variable called $VAR2
Now I have another variable called $VAR1="000004785" (9 bytes long), I need the content of... (5 Replies)
Discussion started by: mohullah
5 Replies
6. Solaris
While uploading an exl file to my application in Solaris 10 the upload failed with error Error! Parsing Error: /SPLM/TC83/tcdata83/model/model_dbextract.xml Line:65576 Column:73 An invalid XML character (Unicode: 0x1a) was found in the value of attribute "unitOfMeasureSymbol" and element is ... (12 Replies)
Discussion started by: karghum
12 Replies
7. AIX
The Follwing packages are installed on my AIX 6.1 box
gcc-4.7.2-1
gcc-c++-4.7.2-1
gcc-cpp-4.7.2-1
gcc-gfortran-4.7.2-1
libgcc-4.7.2-1
libgomp-4.7.2-1
libstdc++-4.7.2-1
libstdc++-devel-4.7.2-1
gmp-5.0.5-1
libmpc-1.0.1-2
libmpc-devel-1.0.1-2
libmpcdec-1.2.6-1
libmpcdec-devel-1.2.6-1... (0 Replies)
Discussion started by: Ashish Gupta
0 Replies
8. Shell Programming and Scripting
Hi Friend,
I have a client name list and client name has some invalid character due to which some issue raised and list of client are15k.
I want to make script who find invalid character name.
can you please help me how i can make script, i means i need logic.
Valid character are :-
... (5 Replies)
Discussion started by: pallvi_mahajan
5 Replies
9. Shell Programming and Scripting
HI Team,
I have script to find the invalid character in file.
f=’pallvi\mahajan’
n=0
while (( $n <= ${#f} ));
do
c="${f:$n:1}"
echo '$c'
if *] ]];
then
grep -sq $c valid.txt
if ;
then
echo "$f" >> f.txt
break
fi
fi (18 Replies)
Discussion started by: pallvi_mahajan
18 Replies
10. Shell Programming and Scripting
Hi,
Anyone can help using SED searches a character string for a specified delimiter character, and returns a leading or trailing space/blank.
Text file :
"1"|"ExternalClassDEA519CF5"|"Art1"
"2"|"ExternalClass563EA516C"|"Art3"
"3"|"ExternalClass305ED16B8"|"Art9"
...
...
... (2 Replies)
Discussion started by: fspalero
2 Replies
LEARN ABOUT DEBIAN
input-linux-mouse
input-linux-mouse(7) GGI input-linux-mouse(7)
NAME
input-linux-mouse - Direct mouse input
SYNOPSIS
input-linux-mouse: [<mousetype>] [,<file>] [,[b<bauds>][r<rts>][d<dtr>]]
DESCRIPTION
This input opens a file (usually a device file or pipe) and reads mouse protocol data from it.
OPTIONS
mousetype
Indicates what type of mouse is attached. The following types are supported:
o ms, Microsoft : Two button Microsoft compatible mice.
o ms3, IntelliMouse, mman+ : Serial Intellimouse or compatible. Supports four buttons for mice like the Logitech MouseMan+.
o MouseSystems, msc : MouseSystems compatible (used in most 3-button mice).
o Logitech, logi : Used in older Logitech serial mice.
o mm, MMSeries : MM series mice.
o Sun : Sun mice. The protocol is the same as 'msc' protocol except it used only 3 bytes per packet.
o MouseMan, mman : MouseMan protocol.
o BusMouse, bm : Non-PS/2 busmice.
o LinuxUSB, lnxusb : IMPS2 that doesn't choke on USB (no init attempted).
o ps2, PS/2 : PS/2 mice (most non-serial mice use this protocol)
o imps2, IMPS/2 : PS/2 IntelliMouse and compatible (not USB, see lnxusb for that.)
o mmanps2, MouseManPlusPS/2 : PS/2 Logitech MouseMan+ and compatible.
Most of the strings supported by GPM, SVGAlib and XFree can be specified. If you find one that isn't, please report.
The special value auto tells input-linux-mouse to read ~/.ggi/input/linux-mouse, and if that fails, $sysconfdir/ggi/input/linux-
mouse. If none of the two files are found, input-linux-mouse tries to auto-detect the mouse, and as a last resort uses the mouse
information specified in /etc/vga/libvga.config.
file The file to read mouse protocol data from; defaults to /dev/mouse.
baud Baud rate of mouse device.
rts Turns off RTS if set to 0; turns RTS on if set to a number greater than 0.
dtr Turns off DTR if set to 0; turns DTR on if set to a number greater than 0.
FEATURES
o Generates evPtr* events.
FILES
~/.ggi/input/linux-mouse and $sysconfdir/ggi/input/linux-mouse consists of the following entries:
mouse mousetype
mdev file
where mousetype and file has the same semantics as the invocation options of the same names.
libgii-1.0.x 2003-08-11 input-linux-mouse(7)