08-03-2015
Thanks for replying.
Just for curiosity, which of those method is the fastest?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
This is an extract from a script that i am trying to run.
for tim in "2005:00:" "2005:01:" "2005:02:" "2005:03:" "2005:04:" "2005:05:"; do
FormString="$tim"
echo "grep '$FormString' access.10Aug-1201AM"
count=`grep "$FormString" access.10Aug-1201AM | wc -l`
... (1 Reply)
Discussion started by: hamsasal
1 Replies
2. UNIX for Dummies Questions & Answers
hi guys,
i was hoping you could help me out with the following
im designing a help site for my work colleagues and would like a little script which would do a grep to check if an application is running on unix
for example this is what i do on unix
ps -ef | grep mqm
and this tells me if... (4 Replies)
Discussion started by: drchris
4 Replies
3. Shell Programming and Scripting
Hi,
I am new to this - I have a unix command (below) that I would like to make automated. I would like the script to run the below command line but would like user input for '\' and '\' as these values will change depending on what i'm searching for. Is this possible? if so please help.
... (13 Replies)
Discussion started by: dnash
13 Replies
4. UNIX for Dummies Questions & Answers
Hi.
I am trying to extract the output of the first few lines of a continuos sh script.
The when i run it, i wont to grep the the first 20 lines of it for an entry and basically do a crtl z out of it or to that effect, and output the results to a text file.
I basically want to script... (5 Replies)
Discussion started by: k00061804
5 Replies
5. Shell Programming and Scripting
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
#!/bin/csh -f
source .orapass
set user = $USER
set pass = $PASS
cd /opt/data/scripts
echo... (2 Replies)
Discussion started by: allinshell99
2 Replies
6. Shell Programming and Scripting
Hi
i wrote script use it as watchdog ( i mean it check another program (pooya) whenever that was killed (closed or crashed) it run another script (pooya_start.sh) to start it,
this script work fine and do the job for me , i need help of an expert to tell me (exact command) how to change this... (8 Replies)
Discussion started by: pooyair
8 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I have a command and would like to make that as a script. How do I do that?
my command is:
grep -Eo +\.+\.+\.+.
and i want to have that like grepscript.sh x.txt > IP.txt
Can somebody help me? (3 Replies)
Discussion started by: eightball
3 Replies
8. Shell Programming and Scripting
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
9. Shell Programming and Scripting
Hi,
New to scripting and looking for some help.
I am trying to write a script that will search a specified directory for any new or modified files within the last 7 days and display the results. This will be ran daily and emailed?
Thanks (18 Replies)
Discussion started by: Con592
18 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I found script which compare ciphers with openssl and return back all result in "YES" (for matching) and "NO" (for no match)
I want to result only "YES" part which can be achieved using grep but not sure how and where to place in below script"
Script:... (1 Reply)
Discussion started by: khuharshree
1 Replies
LEARN ABOUT DEBIAN
xquerybeststipple
XQueryBestSize(3) XLIB FUNCTIONS XQueryBestSize(3)
NAME
XQueryBestSize, XQueryBestTile, XQueryBestStipple - determine efficient sizes
SYNTAX
Status XQueryBestSize(Display *display, int class, Drawable which_screen, unsigned int width, unsigned int height, unsigned int
*width_return, unsigned int *height_return);
Status XQueryBestTile(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return,
unsigned int *height_return);
Status XQueryBestStipple(Display *display, Drawable which_screen, unsigned int width, unsigned int height, unsigned int *width_return,
unsigned int *height_return);
ARGUMENTS
class Specifies the class that you are interested in. You can pass TileShape, CursorShape, or StippleShape.
display Specifies the connection to the X server.
width
height Specify the width and height.
which_screen
Specifies any drawable on the screen.
width_return
height_return
Return the width and height of the object best supported by the display hardware.
DESCRIPTION
The XQueryBestSize function returns the best or closest size to the specified size. For CursorShape, this is the largest size that can be
fully displayed on the screen specified by which_screen. For TileShape, this is the size that can be tiled fastest. For StippleShape,
this is the size that can be stippled fastest. For CursorShape, the drawable indicates the desired screen. For TileShape and Stipple-
Shape, the drawable indicates the screen and possibly the window class and depth. An InputOnly window cannot be used as the drawable for
TileShape or StippleShape, or a BadMatch error results.
XQueryBestSize can generate BadDrawable, BadMatch, and BadValue errors.
The XQueryBestTile function returns the best or closest size, that is, the size that can be tiled fastest on the screen specified by
which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable,
a BadMatch error results.
XQueryBestTile can generate BadDrawable and BadMatch errors.
The XQueryBestStipple function returns the best or closest size, that is, the size that can be stippled fastest on the screen specified by
which_screen. The drawable indicates the screen and possibly the window class and depth. If an InputOnly window is used as the drawable,
a BadMatch error results.
XQueryBestStipple can generate BadDrawable and BadMatch errors.
DIAGNOSTICS
BadMatch An InputOnly window is used as a Drawable.
BadDrawable
A value for a Drawable argument does not name a defined Window or Pixmap.
BadMatch The values do not exist for an InputOnly window.
BadValue Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argu-
ment, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this
error.
SEE ALSO
XCreateGC(3), XSetArcMode(3), XSetClipOrigin(3), XSetFillStyle(3), XSetFont(3), XSetLineAttributes(3), XSetState(3), XSetTile(3)
Xlib - C Language X Interface
X Version 11 libX11 1.5.0 XQueryBestSize(3)