11-19-2012
Yes, that works for an exact comparison, which is what the requestor asked for.
But- what about another file system filling up? What about comparing against a threshold, say, Use% >= 80%?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a text file below. How do i grab all the data between "05T00NPQSMR1" and "****" using awk ? Pls note that the text lines may not be fixed and text content is dynamic. Pls help. Thanks
Below is my code where $LOT_SUFFIX is my shell variable.
awk '/'"$LOT_SUFFIX"'/,/blah/'... (16 Replies)
Discussion started by: Raynon
16 Replies
2. Shell Programming and Scripting
suppose u have a file
AAAAAKKSKSKMSKMSKBNNSHNKSNJNMSYNMSBH
This is exactly wht the input is like
Question is i want to list wht is on the line 5 tht will be A
but Remember u want to extract in between say from 100 to 300
i tried using
awk 'BEGIN {FS=""} {print$100,$300}' file
but it will... (1 Reply)
Discussion started by: cdfd123
1 Replies
3. Shell Programming and Scripting
Hi All,
I am trying to grab a term which is just smaller and larger than the assigned value using the below code. But there seems to be some problem. The value i assign is 25 so i would expect it to output a smaller value to be 20 instead of 10 and 20 and larger value to be 30 instead of 30 and... (3 Replies)
Discussion started by: Raynon
3 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
Can anyone please let me know the syntax / how to pick up the Return Code ( RC) from the mailx command and return it to SAS uisng 'system()' function and '${?}'.
I am in a process to send the mail automatically with an attachment to bulk users. I have used 'Mailx' and 'Unencode'... (0 Replies)
Discussion started by: manas6
0 Replies
5. OS X (Apple)
Does anyone know how to grab video (screen) on Terminal using ffmpeg (not X11).
I have written a unix library and I'd like to make a short movie (demo) of it.
Tried: I already own SNapz Pro2 but it hangs the system (I have an old Powerbook 15" PPC). I guess my system is too slow for version... (0 Replies)
Discussion started by: sentinel
0 Replies
6. Shell Programming and Scripting
Dear All,
I have a file in which there are 54 fields, i want to grab the all the lines and send to a new file where filed18 has lenght greater than 14. How can i do it without if condition and faster way:
currently i am reading file line by line and comparing the length
read fileLine... (9 Replies)
Discussion started by: bilalghazi
9 Replies
7. Shell Programming and Scripting
Hello Honourable Members,
I stuck into one issue, my server is migrating from UNIX to linux and ptree command does not work there.
I was working with pstree command in linux and need some help regarding the same.
suppose i have one line for example:
ram (121)--- sita... (3 Replies)
Discussion started by: singhabm
3 Replies
8. Shell Programming and Scripting
Hi,
What is the best approach to grab contents between
Changes
Dependencies
from the following example snippy
Changes in packages about to be updated:
bash-3.2-32.el5_9.1.x86_64
* Thu Jun 27 22:00:00 2013 Roman Rakus <rrakus@redhat.com> - 3.2-32.1
- Fixed a bug that caused... (2 Replies)
Discussion started by: ashokvpp
2 Replies
9. Shell Programming and Scripting
so i want to avoid external calls in my script, so im trying to do the following:
AllMyLogs="hello---nallo---wello---bollo
tello---zello---jello---kello"
OLDIFS="$IFS\\\n"
IFS="---"
set -- ${AllMyLogs}
IFS="$OLDIFS"
I want it to work in a way that, when i type this:
echo $2
I... (1 Reply)
Discussion started by: SkySmart
1 Replies
10. Shell Programming and Scripting
Not sure where the problem is. I can run the script without any issue using the following command.
. /opt/app/scripts/cdc_migration.sh
But it fails with the below error when I try it this way
/opt/app/scripts/cdc_migration.sh
/opt/app/scripts/cdc_migration.sh: line 65: return: can only... (1 Reply)
Discussion started by: svajhala
1 Replies
LEARN ABOUT CENTOS
xtcancelselectionrequest
XtCreateSelectionRequest(3) XT FUNCTIONS XtCreateSelectionRequest(3)
NAME
XtCreateSelectionRequest, XtSendSelectionRequest, XtCancelSelectionRequest - bundle multiple selection conversion requests into a single
request using MULTIPLE target
SYNTAX
void XtCreateSelectionRequest(Widget requestor, Atom selection):
void XtSendSelectionRequest(Widget requestor, Atom selection, Time time);
void XtCancelSelectionRequest(Widget requestor, Atom selection);
ARGUMENTS
requestor Specifies the widget making the request. Must be of class Core or a subclass thereof.
selection Specifies the particular selection desired.
time Specifies the timestamp to be used in making the request.
DESCRIPTION
When XtCreateSelectionRequest is called, subsequent calls to XtGetSelectionValue and XtGetSelectionValueIncremental with the requestor and
selection as specified to XtCreateSelectionRequest will be bundled into a single selection conversion request with multiple targets. The
request is actually initiated by calling XtSendSelectionRequest.
When XtSendSelectionRequest is called with a value of requestor and selection matching a previous call to XtCreateSelectionRequest, a
selection conversion request is actually sent to the selection owner. If a single target request is queued, that request is made. If mul-
tiple targets are queued they are bundled into a single request with the target MULTIPLE using the specified timestamp. As the conversions
are made, the callbacks associated with each XtGetSelectionValue and XtGetSelectionValueIncremental are invoked in turn.
Multi-threaded applications should lock the application context before calling XtCreateSelectionRequest and release the lock after calling
XtSendSelectionRequest to ensure that the thread assembling the request is safe from interference by another thread assembling a different
request naming the same widget and selection.
When XtCancelSelectionRequest is called, any requests queued since the last call to XtCreateSelectionRequest are cleaned up. Subsequent
calls to XtGetSelectionValue, XtGetSelectionValues, XtGetSelectionValueIncremental, and XtGetSelectionValuesIncremental will not be
deferred.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 libXt 1.1.4 XtCreateSelectionRequest(3)