07-20-2010
Hi,
i think that dont work inside of shellscript, but i allready got it to work =)
thanks for your reply!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using zip -m option to zip my files, but i dont want my sub directories files to be zipped (1 Reply)
Discussion started by: skrish70
1 Replies
2. Shell Programming and Scripting
I need to zip all the files within a directory on a daily basis and store them as a zip file within that directory with the date in its naming convention
I have file extentions .log .lst and .out's within that directory
How do i do this task
zip -mqj mydir/allzip$YYMMDDDD.zip mydir/*.*
... (5 Replies)
Discussion started by: ramky79
5 Replies
3. Shell Programming and Scripting
I have two files in a directory:
xxxx.txt
xxxx.csv
I need to zip both files up but the command I am doing below is only zipping xxx.txt file????:
cd ../$CUSTOMER_DIRECTORY
zip -q ${name}${FILE_OUT_NAME}.zip ls -lrt *.csv *.txt
can anyone help?:confused: (3 Replies)
Discussion started by: Pablo_beezo
3 Replies
4. Shell Programming and Scripting
help trying to figure out a batch shell script to zip each file in a directory into its own zip file
using this code but it does not work
tryed this also
nothing seems to work , just ends without zipping any files
i have over 3000 files i need to zip up individualy
... (7 Replies)
Discussion started by: wingchun22
7 Replies
5. Shell Programming and Scripting
Hi,
Is there a way to find all the files from a specific location and then zip them into a single file, even if they are in multiple directories? (3 Replies)
Discussion started by: rudoraj
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
need to zip all files in a directory and move to another directory after the zip..
i am using this one but didnt help me...
zip -r my_proj_`date +%Y%m%d%H%MS`.zip /path/my_proj
mv in_proj_`date +%Y%m%d%H%M%S`.zip /path/source/
i am trying to zip all the files in my_proj... (0 Replies)
Discussion started by: dssyadav
0 Replies
7. Shell Programming and Scripting
Hi,
I have used the command
cat * | grep -r <<String>> *
It returns:
cat : JAN : is directory
***********************
*********************
My directory structure:
log
- JAN
-catalina.out
-FEB
-catalina.out
-MARCH
... (11 Replies)
Discussion started by: nanthagopal
11 Replies
8. UNIX for Dummies Questions & Answers
Hi Folks,
There is a job which generates a .zip files every day at /usr/app/generated directory , now please advise for the script that will delete this zip files permanently.but while deleting it should make sure that it will not delete the last two days recently generated zip files and this... (1 Reply)
Discussion started by: punpun66
1 Replies
9. Shell Programming and Scripting
I receive multiple zipped directories with files in them, so the .zip name is the name of the directory containing the files.
so i have used a simple loop to unzip all of them but when unzipped i have folders/directories, i wanted to strip these directories and remain with the actual files from... (1 Reply)
Discussion started by: buggzdiq
1 Replies
10. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
LEARN ABOUT CENTOS
xcb_intern_atom
xcb_intern_atom(3) XCB Requests xcb_intern_atom(3)
NAME
xcb_intern_atom - Get atom identifier by name
SYNOPSIS
#include <xcb/xproto.h>
Request function
xcb_intern_atom_cookie_t xcb_intern_atom(xcb_connection_t *conn, uint8_t only_if_exists, uint16_t name_len, const char *name);
Reply datastructure
typedef struct xcb_intern_atom_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_atom_t atom;
} xcb_intern_atom_reply_t;
Reply function
xcb_intern_atom_reply_t *xcb_intern_atom_reply(xcb_connection_t *conn, xcb_intern_atom_cookie_t cookie, xcb_generic_error_t **e);
REQUEST ARGUMENTS
conn The XCB connection to X11.
only_if_exists
Return a valid atom id only if the atom already exists.
name_len The length of the following name.
name The name of the atom.
REPLY FIELDS
response_type
The type of this reply, in this case XCB_INTERN_ATOM. 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).
atom TODO: NOT YET DOCUMENTED.
DESCRIPTION
Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified name. Atoms are used in protocols like EWMH, for example to
store window titles (_NET_WM_NAME atom) as property of a window.
If only_if_exists is 0, the atom will be created if it does not already exist. If only_if_exists is 1, XCB_ATOM_NONE will be returned if
the atom does not yet exist.
RETURN VALUE
Returns an xcb_intern_atom_cookie_t. Errors have to be handled when calling the reply function xcb_intern_atom_reply.
If you want to handle errors in the event loop instead, use xcb_intern_atom_unchecked. See xcb-requests(3) for details.
ERRORS
xcb_alloc_error_t
TODO: reasons?
xcb_value_error_t
A value other than 0 or 1 was specified for only_if_exists.
EXAMPLE
/*
* Resolves the _NET_WM_NAME atom.
*
*/
void my_example(xcb_connection *c) {
xcb_intern_atom_cookie_t cookie;
xcb_intern_atom_reply_t *reply;
cookie = xcb_intern_atom(c, 0, strlen("_NET_WM_NAME"), "_NET_WM_NAME");
/* ... do other work here if possible ... */
if ((reply = xcb_intern_atom_reply(c, cookie, NULL))) {
printf("The _NET_WM_NAME atom has ID %u0, reply->atom);
free(reply);
}
}
SEE ALSO
xcb-requests(3), xcb-examples(3), xcb_get_atom_name(3), xlsatoms(1)
AUTHOR
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
XCB
2014-06-10 xcb_intern_atom(3)