Sponsored Content
Top Forums UNIX for Dummies Questions & Answers See the date of file after its been zipped and unzipped? Post 302324254 by vbe on Wednesday 10th of June 2009 10:27:01 AM
Old 06-10-2009
Well you must be doing something else...
Here is how I do:
Code:
 find . -print | cpio -ocv >~/.arc/"$1".arc; 
   compress ~/.arc/"$1".arc;

the other way round:
Code:
   uncompress ${1}.arc.Z ;
   cpio -icdmv < ${1}.arc ;

It keeps the file ownership and timestamp (on HP-UX...)

Last edited by vbe; 06-10-2009 at 11:54 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

zipped or unzipped file

Is there a way you can tell if a file is still zipped or it's unzipped I have a file called ssss.zip and I would like to know if this file is still zipped or if it's unzipped? I'm on IBM AIX/RS6000 (3 Replies)
Discussion started by: ted
3 Replies

2. UNIX for Dummies Questions & Answers

sendind a zipped file via email

Hi, I was not sure if I can do this. Suppose I have a file under /tmp Suppose the file is called any_11_52.txt Fisrt QUESTION??? If I zip this file using gzip will the user be able to unzip it , if I send it as an attachment in an email. Secondly is there a command by which we can... (2 Replies)
Discussion started by: rooh
2 Replies

3. Shell Programming and Scripting

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it? using grep command.. Bit urgent.. pls..help me (2 Replies)
Discussion started by: senraj01
2 Replies

4. UNIX for Dummies Questions & Answers

how to check if file is zipped

I have a script that grabs files from directory , zips and moves them somewhere else. It works fine except the case when files it grabs are already zipped. Then it trys to zip it again which does not make sence. How can I check before zipping if file is already zipped? thanks in advance (3 Replies)
Discussion started by: arushunter
3 Replies

5. UNIX for Dummies Questions & Answers

reading a zipped file without unzipping it?

Dear all, I would like to ask how i can read a zipped file (file.gz) without actually unzipping it? i think there is a way to do so but i can't remember it.. can anyone help? thanks in advance.. (1 Reply)
Discussion started by: marwan
1 Replies

6. Solaris

Read zipped log file

If we have a big zipped log file, how can we look for a specific string in this zipped log file without unzipping it? Thanks, (2 Replies)
Discussion started by: Pouchie1
2 Replies

7. UNIX for Dummies Questions & Answers

Zipped tar file is corrupt

Hello, I am currently dumping 30-40 reports on a Unix folder located here /home/apps/reports/prode/excel I use K-shell to do this task. In that, I use the gzip command to compress these files. I want to be able to use a tar command to first load the entire directory into one file then gzip that... (2 Replies)
Discussion started by: Pramodini Rode
2 Replies

8. Solaris

How can I tell if a file is zipped or not?

SunOS xxxxxx 5.10 Generic_142900-15 sun4v sparc SUNW,T5240 We receive files that are sometimes zipped, but the file may not have the .gz or other extention that would indicated that the file is zipped. Is there a unix "test" command that I could use or something similar? Thanks in advance (7 Replies)
Discussion started by: Harleyrci
7 Replies

9. UNIX for Dummies Questions & Answers

[Solved] to view a zipped file

Hi, I'm having a file which doesn't have any extension like .gz or .tar But i belive it's a zipped file because it's a archive path, i tried to view the file through zcat but it's not working the below shown is the file name PCLI_INXSTATUS_DEFF_I2705541_110927014513 Thanks for the... (4 Replies)
Discussion started by: thelakbe
4 Replies

10. Shell Programming and Scripting

Append timestamp create .trg file for all content of an unzipped archive

Hi, I have a test.zip archive that contains test.zip --> (file_1.txt, file_2.txt , file_3.txt) I need to unzip the file like this, file_1_timestamp.txt file_1_timestamp.trg file_2_timestamp.txt file_2_timestamp.trg file_3_timestamp.txt file_3_timestamp.trg Could you please let me know... (7 Replies)
Discussion started by: Shandel
7 Replies
mlib_GraphicsDrawArc(3MLIB)											       mlib_GraphicsDrawArc(3MLIB)

NAME
mlib_GraphicsDrawArc, mlib_GraphicsDrawArc_8, mlib_GraphicsDrawArc_32, mlib_GraphicsDrawArc_X_8, mlib_GraphicsDrawArc_X_32, mlib_Graphics- DrawArc_A_8, mlib_GraphicsDrawArc_A_32, mlib_GraphicsDrawArc_B_8, mlib_GraphicsDrawArc_B_32, mlib_GraphicsDrawArc_AB_8, mlib_Graphics- DrawArc_AB_32 - draw arc SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ] #include <mlib.h> mlib_status mlib_GraphicsDrawArc_8(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c); mlib_status mlib_GraphicsDrawArc_32(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c); mlib_status mlib_GraphicsDrawArc_X_8(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c, mlib_s32 c2); mlib_status mlib_GraphicsDrawArc_X_32(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c, mlib_s32 c2); mlib_status mlib_GraphicsDrawArc_A_8(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c); mlib_status mlib_GraphicsDrawArc_A_32(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c); mlib_status mlib_GraphicsDrawArc_B_8(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsDrawArc_B_32(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsDrawArc_AB_8(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c, mlib_s32 a); mlib_status mlib_GraphicsDrawArc_AB_32(mlib_image *buffer, mlib_s16 x, mlib_s16 y, mlib_s32 r, mlib_f32 t1, mlib_f32 t2, mlib_s32 c, mlib_s32 a); Each of the mlib_GraphicsDrawArc_*() functions draws an arc with the center at (x, y), radius r, start angle t1, and end angle t2. Each of the mlib_GraphicsDrawArc_X_*() functions draws an arc in Xor mode as follows: data[x,y] ^= c ^ c2 Each of the mlib_GraphicsDrawArc_A_*() functions draws an arc with antialiasing. Each of the mlib_GraphicsDrawArc_B_*() functions draws an arc with alpha blending as follows: data[x,y] = (data[x,y] * (255 - a) + c * a) / 255 Each of the mlib_GraphicsDrawArc_AB_*() functions draws an arc with antialiasing and alpha blending. Each of the functions takes some of the following arguments: buffer Pointer to the image into which the function is drawing. x X coordinate of the center. y Y coordinate of the center. r Radius of the arc. t1 Start angle of the arc in radians. t2 End angle of the arc in radians. c Color used in the drawing. c2 Alternation color. a Alpha value for blending. 0 <= a <= 255. Each of the functions returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ mlib_GraphicsDrawCircle(3MLIB), mlib_GraphicsDrawEllipse(3MLIB), attributes(5) 3 Mar 2005 mlib_GraphicsDrawArc(3MLIB)
All times are GMT -4. The time now is 09:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy