07-17-2008
anyone out there willing to help a lost man
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How could I check if a string variable contains at least (or only) 2 characters, and check and make sure that the string does not contain any numeric digits?...I need to know how to do this as simple as possible. and I am using the Ksh shell. Thanks. (1 Reply)
Discussion started by: developncode
1 Replies
2. Shell Programming and Scripting
I've got a file (numbers.txt) filled with numbers and I want to replace each one of those numbers with a new random number between 0 and 9. This is my script so far:
#!/bin/bash
rand=$(($RANDOM % 9))
sed -i s//$rand/g numbers.txtThe problem that I have is that it replaces each number with just... (2 Replies)
Discussion started by: hellocatfood
2 Replies
3. Shell Programming and Scripting
hi
i am writing a hangman script and am having trouble checking the correct letters against the word
i need the script to compare the word against the letters guessed that are correct so once all the letters within the word have been guessed it will alow me to create a wining senario
eg
... (3 Replies)
Discussion started by: lsecer
3 Replies
4. Shell Programming and Scripting
i need to replace the any special characters with escape characters like below.
test!=123-> test\!\=123
!@#$%^&*()-= to be replaced by
\!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies
5. Shell Programming and Scripting
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
Discussion started by: ijustneeda
11 Replies
6. SCO
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies
7. Shell Programming and Scripting
I am having a zipped file which has the following URL contents -
98.70.217.222 - - "GET /liveupdate-aka.symantec.com/1340071490jtun_nav2k8enn09m25.m25?h=abcdefgh HTTP/1.1" 200 159229484 "-" "hBU1OhDsPXknMepDBJNScBj4BQcmUz5TwAAAAA" "-"
In this line here is we only need to consider the... (4 Replies)
Discussion started by: Naks_Sh10
4 Replies
8. Shell Programming and Scripting
Hello, I am working with some very large files (upwards of 1M records). I have written code to parse out a lot of the data and am using awk rather than a built-in "while read LINE" for performance (I have tested both ways). That said, I now need to read each of these incoming lines, check the ninth... (2 Replies)
Discussion started by: dagamier
2 Replies
9. Shell Programming and Scripting
My question is basically as the title says. How can I check a user inputted string is only certain characters long (for example, 3 characters long) and how do I check a user inputted string only contains certain characters (for example, it should only contain the characters 'u', 'a', 'g', and 'c')... (4 Replies)
Discussion started by: Eric1
4 Replies
10. Shell Programming and Scripting
I have this fastq file:
@M04961:22:000000000-B5VGJ:1:1101:9280:7106 1:N:0:86
GGGGGGGGGGGGCATGAAAACATACAAACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCAACAGCTTTATCAATACCATGAAAAATATCAACCACACCA
+test-1
GGGGGGGGGGGGGGGGGCCGGGGGFF,EDFFGEDFG,@DGGCGGEGGG7DCGGGF68CGFFFGGGG@CGDGFFDFEFEFF:30CGAFFDFEFF8CAF;;8... (10 Replies)
Discussion started by: Xterra
10 Replies
LEARN ABOUT HPUX
xtdisownselection
XtDisownSelection() XtDisownSelection()
Name
XtDisownSelection - indicate that selection data is no longer available.
Synopsis
void XtDisownSelection(w, selection, time)
Widget w;
Atom selection;
Time time;
Inputs
w Specifies the widget relinquishing selection ownership.
selection Specifies which selection the widget is giving up (usually XA_PRIMARY or XA_SECONDARY).
time Specifies the timestamp that indicates when the request to relinquish selection ownership was initiated.
Description
XtDisownSelection() informs the Intrinsics selection mechanism that the specified widget is to lose ownership of the specified selection as
of the specified time. If the widget does not currently own the selection, either because it lost the selection or because it never had
the selection to begin with, XtDisownSelection() does nothing.
After a widget has called XtDisownSelection(), its XtConvertProc is not called even if a request arrives later with a timestamp during the
period that this widget owned the selection. However, its XtDoneProc will be called if a conversion that started before the call to XtDis-
ownSelection() finishes after the call to XtDisownSelection(). See XtOwnSelection() for more information.
Usage
Usually, a selection owner maintains ownership indefinitely until some other client requests ownership, at which time the Intrinsics selec-
tion mechanism informs the previous owner that it has lost ownership of the selection. However, in response to some user actions (for
example, when a user deletes the information selected), the application may with to explicitly inform the Intrinsics that it no longer is
to be the selection owner by calling XtDisownSelection().
When the selection changes hands because another client has claimed it (rather than as a result of a call to XtDisownSelection()), the
Intrinsics inform the application that it has lost the selection ownership by calling its XtLoseSelectionProc.
See Also
XtGetSelectionValue(1), XtOwnSelection(1),
XtConvertProc(2), XtDoneProc(2), XtLoseSelectionProc(2).
Xt - Selections XtDisownSelection()