01-16-2008
10 More Discussions You Might Find Interesting
1. Programming
HI
Hi I have a character string which contains some special characters and I need it to display as a hex string.
For example, the sample i/p string: ×¥ïA Å gïÛý and
the o/p should be : D7A5EF4100C5010067EFDBFD
Any pointers or sample code pls. (5 Replies)
Discussion started by: axes
5 Replies
2. Shell Programming and Scripting
Is there a way for grep to output only the found string and not the whole line?
I have a ksh script which reads in a file and loops through every line looking up on a grep -f list. For it to only display only the string found i pass this to awk as a variable and loop through the list file using... (5 Replies)
Discussion started by: Cranie
5 Replies
3. Shell Programming and Scripting
If I have a string defined as:
MyString=abcde
echo $MyString
How can I loop through it character by character? I haven't been able to find a way to index the string so that I loop through it.
shew01 (10 Replies)
Discussion started by: shew01
10 Replies
4. Shell Programming and Scripting
Hi,
I am having trouble using the result of the following awk command in a script, as displaying the contents of the placeholder automatically replaces the new created TAB by a space character again:
From the prompt:
cscyabl@comet:(develop)> echo "01 12" | awk '{gsub(" ","\t");print}'
01 ... (2 Replies)
Discussion started by: Indalecio
2 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to figure out a way to encapsulate a tab character, or four or five space characters into a string variable to be used in my script. I'm using the bash shell.
I tried
$variablename=" <string text>"
but it didnt give me the output i wanted (output was still... (7 Replies)
Discussion started by: rowlf
7 Replies
6. Programming
When i write the source code in netbeans environment,if the source code,there are chinese characters,chinese characters will be displayed as box,how to solve this problem?please (2 Replies)
Discussion started by: fang_xiaoan
2 Replies
7. UNIX for Dummies Questions & Answers
I would like to display the last 8 characters of the filenames for filenames of different lengths.
I can delete the last 8 characters with sed but dont know how to only show the last 8 characters.
The filenames are something like;
afxH340800340000
afxH30800340021
afxR3080034002122
I... (3 Replies)
Discussion started by: Beanz
3 Replies
8. Shell Programming and Scripting
Hi,
i ran following bdf command and found below out with space uses.
prd@prd02/usr/apps/cti>bdf | grep /usr/apps
/dev/vg01/lvol6 17379328 9873783 7036696 58% /usr/apps
/dev/vg01/SYBASE 1228800 978631 234597 81% /usr/apps/sybase
2150400 1108516 976776 ... (3 Replies)
Discussion started by: koti_rama
3 Replies
9. 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
10. UNIX for Beginners Questions & Answers
I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file.
Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies
LEARN ABOUT REDHAT
xutf8drawimagestring
XmbDrawImageString(3X11) XLIB FUNCTIONS XmbDrawImageString(3X11)
NAME
XmbDrawImageString, XwcDrawImageString, Xutf8DrawImageString - draw image text using a single font set
SYNTAX
void XmbDrawImageString(display, d, font_set, gc, x, y, string, num_bytes)
Display *display;
Drawable d;
XFontSet font_set;
GC gc;
int x, y;
char *string;
int num_bytes;
void XwcDrawImageString(display, d, font_set, gc, x, y, string, num_wchars)
Display *display;
Drawable d;
XFontSet font_set;
GC gc;
int x, y;
wchar_t *string;
int num_wchars;
void Xutf8DrawImageString(display, d, font_set, gc, x, y, string, num_bytes)
Display *display;
Drawable d;
XFontSet font_set;
GC gc;
int x, y;
char *string;
int num_bytes;
ARGUMENTS
d Specifies the drawable.
display Specifies the connection to the X server.
font_set Specifies the font set.
gc Specifies the GC.
num_bytes Specifies the number of bytes in the string argument.
num_wchars
Specifies the number of characters in the string argument.
string Specifies the character string.
x
y Specify the x and y coordinates.
DESCRIPTION
The XmbDrawImageString, XwcDrawImageString and Xutf8DrawImageString functions fill a destination rectangle with the background pixel
defined in the GC and then paint the text with the foreground pixel. The filled rectangle is the rectangle returned to overall_logi-
cal_return by XmbTextExtents, XwcTextExtents or Xutf8TextExtents for the same text and XFontSet.
When the XFontSet has missing charsets, each unavailable character is drawn with the default string returned by XCreateFontSet. The behav-
ior for an invalid codepoint is undefined.
The function Xutf8TextExtents is an XFree86 extension introduced in XFree86 4.0.2. Its presence is indicated by the macro
X_HAVE_UTF8_STRING.
SEE ALSO
XDrawImageString(3X11), XDrawString(3X11), XDrawText(3X11), XmbDrawString(3X11), XmbDrawText(3X11)
Xlib - C Language X Interface
X Version 11 Release 6.6 XmbDrawImageString(3X11)