04-06-2008
problem with the script in counting
Hi Thanks for the reply.
I have one more doubt.
If I grabbed 2 or more fileds to the file and and If I want to count on only one more field...how the sort should be....
for example,
grep sceneority <file> | cut -f 3,4,6 >> swi
I want to count on only 6th field....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi
i am writing a korn shell script to compile all programs there are arount 2000+ files now i have a script that can compile programs but i want to show status of compilation because to compile all programs it takes around 10-15 mins so how can i display status like it should print no of files... (3 Replies)
Discussion started by: zedex
3 Replies
2. Shell Programming and Scripting
Ok, so this is a small part of a script I wrote to build disk groups using VXVM. The only problem is that I am limited to a count of 8 maximum. If I want more, I will have to add more lines of "if" statements. How can I accomplish the same thing, in a few lines, but not be limited in the max... (13 Replies)
Discussion started by: LinuxRacr
13 Replies
3. UNIX for Dummies Questions & Answers
I tried this script to get a count of the occurrence of a string in files.
I have multiple files in one directory I will use this on.
All the filenames begin "invALL.06" The script works, except it counts twice for every one instance of 'Invoice Total'.
If there are 5 occurences of 'Invoice... (2 Replies)
Discussion started by: scarletsupra
2 Replies
4. Shell Programming and Scripting
i should use this script runs how many times before ?
how can i do_? (3 Replies)
Discussion started by: utoptas
3 Replies
5. UNIX for Advanced & Expert Users
I'm facing a strange problem, please help me out.
Here we go.
I want to count number of fields in particular file.
filename and delimiter character will be passed through parameter.
On command prompt if i type following i get 27 as output (which is correct)
cat customer.dat | head -1 | awk... (12 Replies)
Discussion started by: vikanna
12 Replies
6. Shell Programming and Scripting
I want to create a unique listing of slices/disks from a large list that will have duplicates. Here is a sample of the input file.
#array.txt
Disk4:\s93
Disk4:\s93
Disk4:\s94
Disk4:\s95\s96\s97
Disk4:\s93
Disk4:\s95\s96\s103
Disk4:\s93
Disk4:\s93
Disk4:\s95\s96\s105
Disk4:\s93... (5 Replies)
Discussion started by: jontjioe
5 Replies
7. Shell Programming and Scripting
I need to write script, counting the number of visitor to this script. help me please!
Code tags for code, please. (1 Reply)
Discussion started by: numeracy
1 Replies
8. Shell Programming and Scripting
Hello to all @here,
as Iīm new to this forum, I will try to start in a easy way for my first post. Iīm not beginner in scripting, but also not a proffessional. So please keep easy, if I donīt understand your explanation at once ;) I donīt mean it in a bad way!
Here is the Problem:
There were... (2 Replies)
Discussion started by: muogli
2 Replies
9. Shell Programming and Scripting
Hi friends
i need a help on Perl Script
In My Home directory, i have some other directories and inside those directories i have some subdirectories and all the directories contains files.
Now i want to count a word in all files and i want the output like below
wordcount in which file(name... (5 Replies)
Discussion started by: siva kumar
5 Replies
10. Shell Programming and Scripting
Hi all,
Below is a script I'm writing and giving me error:
#!/usr/bin/sh
if ; then
echo "Success!"
else
echo "Failure!"
fi
Normally if I do ps -ef|grep dw.sap|wc -l it gives me output of 18. So my script checks if it's greater than 17 it echoes success else failure
... (5 Replies)
Discussion started by: frum
5 Replies
LEARN ABOUT CENTOS
xcb_dri2_get_buffers_with_format_buffers
xcb_dri2_get_buffers_with_format(3) XCB Requests xcb_dri2_get_buffers_with_format(3)
NAME
xcb_dri2_get_buffers_with_format -
SYNOPSIS
#include <xcb/dri2.h>
Request function
xcb_dri2_get_buffers_with_format_cookie_t xcb_dri2_get_buffers_with_format(xcb_connection_t *conn, xcb_drawable_t drawable, uint32_t count,
uint32_t attachments_len, const xcb_dri2_attach_format_t *attachments);
Reply datastructure
typedef struct xcb_dri2_get_buffers_with_format_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t width;
uint32_t height;
uint32_t count;
uint8_t pad1[12];
} xcb_dri2_get_buffers_with_format_reply_t;
Reply function
xcb_dri2_get_buffers_with_format_reply_t *xcb_dri2_get_buffers_with_format_reply(xcb_connection_t *conn,
xcb_dri2_get_buffers_with_format_cookie_t cookie, xcb_generic_error_t **e);
Reply accessors
xcb_dri2_dri2_buffer_t *xcb_dri2_get_buffers_with_format_buffers(const xcb_dri2_get_buffers_with_format_request_t *reply);
int xcb_dri2_get_buffers_with_format_buffers_length(const xcb_dri2_get_buffers_with_format_reply_t *reply);
xcb_dri2_dri2_buffer_iterator_t xcb_dri2_get_buffers_with_format_buffers_iterator(const xcb_dri2_get_buffers_with_format_reply_t *reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
drawable TODO: NOT YET DOCUMENTED.
count TODO: NOT YET DOCUMENTED.
attachments_len
TODO: NOT YET DOCUMENTED.
attachments
TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_DRI2_GET_BUFFERS_WITH_FORMAT. This field is also present in the xcb_generic_reply_t and
can be used to tell replies apart from each other.
sequence The sequence number of the last request processed by the X11 server.
length The length of the reply, in words (a word is 4 bytes).
width TODO: NOT YET DOCUMENTED.
height TODO: NOT YET DOCUMENTED.
count TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_dri2_get_buffers_with_format_cookie_t. Errors have to be handled when calling the reply function xcb_dri2_get_buf-
fers_with_format_reply.
If you want to handle errors in the event loop instead, use xcb_dri2_get_buffers_with_format_unchecked. See xcb-requests(3) for details.
ERRORS
This request does never generate any errors.
SEE ALSO
AUTHOR
Generated from dri2.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_dri2_get_buffers_with_format(3)