08-20-2010
Thankx for the reply but i am looking for result in YYYYMMDD format
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi expert,
I want to retrieve yesterday su log.
How to calculate and assign variable value ( 06/23 ) in myVariable ?
#!/bin/sh
myVariable=yesterday date in month/date
cat /var/adm/sulog | grep $myVariable > file.txt
many thanks! (5 Replies)
Discussion started by: skully
5 Replies
2. Shell Programming and Scripting
I am currently running the following Korn shell script which works fine:
#!/usr/bin/ksh
count=`db2 -x "select count(*) from schema.tablename"`
echo "count"
I would like to add a "where" clause to the 2nd line that would allow me to get a record count of all the records from schema.tablename... (9 Replies)
Discussion started by: sasaliasim
9 Replies
3. Shell Programming and Scripting
Hi,
`date` command will give the current days date.
Is there any command to get the previous day date?
I need the previous day value in my script.
Ahamed. (1 Reply)
Discussion started by: ahamed
1 Replies
4. Shell Programming and Scripting
Hi,
I want to compare today's date(DDMMYYYY) with yesterday(DDMMYYYY) from system date,if (today month = yesterday month) then execute alter query else do nothing.
The above requirement i want in Shell script(KSH)...
Can any one please help me?
Double post, continued here. (0 Replies)
Discussion started by: kumarmsk1331
0 Replies
5. Shell Programming and Scripting
hi,
i've just started learning a bit of shell scripting and i wanted to know how to assign the value of the day of the month (i think the command for that is date +%d) to a variable say 'd' so that i can display 'st', 'nd', 'rd' and 'th' depending upon the value of that variable.
i'd... (5 Replies)
Discussion started by: xXWiLdAcEXx
5 Replies
6. Shell Programming and Scripting
Hello,
I have a file like this:
2012112920121130
12345620121130msABowwiqiq
34477420121129amABamauee
e7748420121130ehABeheheei
in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies
7. Shell Programming and Scripting
Hi
I want to get tomorrow and yesterday date from date command. My shell is KSH and server is AIX. I tried several options, but unable to do. Please help on this.
Regards
Rajesh (5 Replies)
Discussion started by: rajeshmepco
5 Replies
8. Shell Programming and Scripting
Hello,
I'd like to write a monthly archive script that archives some logs. But I'd like to do it based on yesterday's date. In other words, I'd like to schedule the script to run on the 1st day of each month, but have the archive filename include the previous month instead.
Here's what I... (5 Replies)
Discussion started by: nbsparks
5 Replies
9. Shell Programming and Scripting
Hi guys,
Is there a way to assign curent time to PS4 variable in ksh. My goal is to have each line produced by 'set -x' command to have a time stamp.
Here is my code:
$cat test
#!/usr/bin/ksh
export PS4="`date` "
set -x
echo "TRACE LINE ONE"
echo "I WILL SLEEP FOR 10 SEC"
sleep 10... (2 Replies)
Discussion started by: aoussenko
2 Replies
10. Shell Programming and Scripting
hi all,
How to compare two files whether they are same are not...? like i had my input files as 20141201_file.txt and 20141130_file2.txt
how to compare the above files based on date .. like todays file and yesterdays file...? (4 Replies)
Discussion started by: hemanthsaikumar
4 Replies
LEARN ABOUT CENTOS
xcb_render_query_pict_index_values_reply
xcb_render_query_pict_index_values(3) XCB Requests xcb_render_query_pict_index_values(3)
NAME
xcb_render_query_pict_index_values -
SYNOPSIS
#include <xcb/render.h>
Request function
xcb_render_query_pict_index_values_cookie_t xcb_render_query_pict_index_values(xcb_connection_t *conn, xcb_render_pictformat_t format);
Reply datastructure
typedef struct xcb_render_query_pict_index_values_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_values;
uint8_t pad1[20];
} xcb_render_query_pict_index_values_reply_t;
Reply function
xcb_render_query_pict_index_values_reply_t *xcb_render_query_pict_index_values_reply(xcb_connection_t *conn,
xcb_render_query_pict_index_values_cookie_t cookie, xcb_generic_error_t **e);
Reply accessors
xcb_render_indexvalue_t *xcb_render_query_pict_index_values_values(const xcb_render_query_pict_index_values_request_t *reply);
int xcb_render_query_pict_index_values_values_length(const xcb_render_query_pict_index_values_reply_t *reply);
xcb_render_indexvalue_iterator_t xcb_render_query_pict_index_values_values_iterator(const xcb_render_query_pict_index_values_reply_t
*reply);
REQUEST ARGUMENTS
conn The XCB connection to X11.
format TODO: NOT YET DOCUMENTED.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_RENDER_QUERY_PICT_INDEX_VALUES. 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).
num_values
TODO: NOT YET DOCUMENTED.
DESCRIPTION
RETURN VALUE
Returns an xcb_render_query_pict_index_values_cookie_t. Errors have to be handled when calling the reply function xcb_render_query_pict_in-
dex_values_reply.
If you want to handle errors in the event loop instead, use xcb_render_query_pict_index_values_unchecked. See xcb-requests(3) for details.
ERRORS
This request does never generate any errors.
SEE ALSO
AUTHOR
Generated from render.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_render_query_pict_index_values(3)