08-29-2005
Too little info to give a good answer, what is the reason for the control characters?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
using c-shell, does anyone know how to send control characters to the printer before the job?
I need to set a printer to print in condensed mode
HELP (1 Reply)
Discussion started by: mglinsk
1 Replies
2. Shell Programming and Scripting
Hi ,
the fog is fulling my brain after holidays , somebody can help me ?
I have a file in input like that :
toto
tata
tutu
and trying with awk to insert the compete file string as :
/dir1/dir2/toto
/dir1/dir2/tata
/dir1/dir2/tutu
i used to write :
awk 'BEGIN {FS="\\"} {print... (4 Replies)
Discussion started by: Nicol
4 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I want to open a cash drawer remotely. The cash drawer is commanded by a printer.
I need to connect to the cash drawer which is connected over a network (and shared) and simply send a sequence of five ASCII commands (see http://pages.prodigy.net/daleharris/popopen2.htm) to a... (5 Replies)
Discussion started by: Friğrik
5 Replies
4. Shell Programming and Scripting
Hello,
any trick to print line number and last two characters of each line ? (4 Replies)
Discussion started by: Bashar
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I have a password stored in a file (which is a user input)
The password is having the special character $
say the password is pw$ord and is stored in the file pw_note
I am using the following statement to store the passowrd in a
variable
$schema_pwd = `cat $dir/pwd_note` ;
Now if i print... (4 Replies)
Discussion started by: ssuresh1999
4 Replies
6. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Thanks,
Shobana (2 Replies)
Discussion started by: Shobana_s
2 Replies
7. Linux
Hi,
I have an csv file and there are some non printable characters(extended ascii) so I am trying to create a clean copy of the csv file . I am using
this command:
tr -cd "" < /opt/informatica/PowerCenter8.6.0/server/infa_shared/SrcFiles/ThirdParty/locations.csv > ... (4 Replies)
Discussion started by: gerkus
4 Replies
8. UNIX for Dummies Questions & Answers
hi
i have a file that contains the data like this
12345
12453
8990998987
0989876656
12345678
12344
133678999
12345677
i should insert "+" and "-" signs for each line i,e.,
+ 12345
- 12453
+ 8990998987
- 0989876656
+ 12345678
- 12344 (2 Replies)
Discussion started by: anurupa777
2 Replies
9. Shell Programming and Scripting
How do I remove the printer escape sequence, the first 5 characters, that occurs on every 33rd line in a file, see hex dump of line 1.
0000 1e 00 00 00 00 0a 0a 0a 20 0a 20 20 20 20 20 20 ....
0010 20 20 20 20 20 20 20 20 20 20 0a 42 49 4c 4c 20
Thanks, (2 Replies)
Discussion started by: jgt
2 Replies
10. UNIX for Beginners Questions & Answers
I would like to insert n number of characters at the beginning of each line that starts with a given character. If possible, I would be most appreciative for a sed or awk solution.
Given the data below, I would like to be able to insert either 125 spaces or 125 "-" at the beginning of every line... (6 Replies)
Discussion started by: jvoot
6 Replies
LEARN ABOUT HPUX
xstorenamedcolor
XStoreNamedColor() XStoreNamedColor()
Name
XStoreNamedColor - set RGB values of a read/write colorcell by color name.
Synopsis
XStoreNamedColor(display, colormap, color, pixel, flags)
Display *display;
Colormap colormap;
char *color;
unsigned long pixel;
int flags;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
colormap
Specifies the colormap.
color Specifies the color name string (for example, "red"). This cannot be in hex format (as used in XParseColor()). Uppercase or low-
ercase is not important. The string should be in ISO LATIN-1 encoding, which means that the first 128 character codes are ASCII,
and the second 128 character codes are for special characters needed in western languages other than English.
pixel Specifies the entry in the colormap to store color in.
flags Specifies which red, green, and blue indexes are set.
Description
XStoreNamedColor() looks up the named color in the database, with respect to the screen associated with colormap, then stores the result in
the read/write colorcell of colormap specified by pixel. If the color name is not in the Host Portable Character Encoding, the result is
implementation-dependent. Uppercase or lowercase in name does not matter. The flags argument, a bitwise OR of the constants DoRed,
DoGreen, and DoBlue, determines which subfields within the pixel value in the cell are written.
For more information, see Volume One, Chapter 7, Color.
Errors
BadAccess pixel is unallocated or read-only.
BadColor Invalid colormap.
BadName color is not in server's color database.
BadValue pixel is not a valid index into colormap.
See Also
XDefaultColormap(), XDisplayCells(), XCopyColormapAndFree(), XCreateColormap(), XFreeColormap(), XGetStandardColormap(), XInstallCol-
ormap(), XListInstalledColormaps(), XSetStandardColormap(), XSetWindowColormap(), XUninstallColormap().
Xlib - Window Manager Hints XStoreNamedColor()