Thanks a ton. This is working fine and as expected.
All the files in the given directory are zipping fine.
Thanks...This is very helpful.
---------- Post updated at 11:41 AM ---------- Previous update was at 11:39 AM ----------
Quote:
Originally Posted by Don Cragun
Thanks for the information, but that didn't answer all the questions. If in addition to having the files:
in a directory, the same directory contains another set of files, perhaps something like:
how will you tell your script which set to zip? Or will this never happen? If it could happen, should both sets be zipped.
Will there ever be any files in the directory containing these files with names ending with .txt that should not be zipped.
Will the zip file always be named APP_Deg_Dummy_dateTMtimestamp_File.zip? If not, how will the various parts of the name to be used for a given invocation be passed to your script?
All file with *.txt will be zipped. The above mentioned solution works perfectly fine.
I am trying to upload .zip files to Unix server and get the error 553 qmerev2002.zip: Permission denied, what is my problem?? I am able to load other files and folders fine. (3 Replies)
Hi guys:
I need to grab a particular file(s) from a directory.
the file name is abc.xyz.2006020101200
I need to grab it based on the bold numbers. The bolded numbers are the date and such files are created everyday.
My initial script was to grab the listing of that directory and then cut... (1 Reply)
Hi,
Is there a way to grab the username who is running the shell script. I am trying to do is:
$ who am i
Peterd123 pts/5 Mar 20 09:30 (H0021563.xyz.com)
Is there a way to display only the user name above, which is"Peterd123".
Thanks
Raj (3 Replies)
I have more than 500 gzipped files in a directory. I have one lookup file in the same directory with 200 key values. I need to get the name of the gzipped file which have any of these 200 key values. Here my criteria is do not unzip the files due to space constraint. Any suggestion? (3 Replies)
Hi All,
I need to check the logs and grep it. The problem is that the previous days are zipped with *.gz. How do grep on the *.gz?
Thank you in advance. (1 Reply)
Hi,
I have below two zipped files -
file1.gz
023384148,1,,,02077301961,R,02077301961,N,0,02077301961,N,0,0,8010,02077300518,U,N,,02077300518,U,20100501011732,20100501011732,0,20100501011815,00000430,16,16,10,N;... (8 Replies)
Hi everyone,
when I try to copy *.gz files run cp within the correct source folder it works as follow:
Source folder = C:/Documents and Settings/user/Recent papers/2771/
Destination folder = C:/Documents and Settings/user/My documents/1532/temp
cp *.gz "C:/Documents and Settings/user/My... (2 Replies)
I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Hi,
To all the Unix gurus this should be a simple task, but as a newbie I'm finding it hard to crack this. Any help is highly appreciated...
Scenario:
Step 1 : Move zip file from FTP folder to WORK folder
Step 2:
Unzip the file "Sample_YYYYMMDDHHMMSS.tar.gz" which contains many file... (10 Replies)
Hello dear members,
I have one general and one specific question which I will be very grateful if you could help me with them. Let's start with my general question:
1. I am working on cluster computer shared with other people and I need to manipulate a big zipped text file of 13 GB. There is... (1 Reply)
Discussion started by: Homa
1 Replies
LEARN ABOUT OSF1
ark
ARK(1) KDE User's Manual ARK(1)NAME
ark - KDE archiving tool
SYNOPSIS
ark [-b] [-a] [-e] [-c] [-f suffix] [-p] [-t file] [-d] [-o directory] [KDE Generic Options] [Qt(TM) Generic Options]
DESCRIPTION
Ark is a program for managing various compressed file formats within KDE. Archives can be viewed, extracted, created and modified with Ark.
The program can handle various formats such as tar, gzip, bzip2, zip, rar (when the appropriate libraries or command-line programs are
installed).
OPERATION MODES
Ark can be used either as a stand-alone GUI program as well as a command-line program in order to perform some specific tasks.
If invoked without the -b (--batch) or -c (--add) options, Ark is started as a normal GUI program.
When the -b (--batch) option is used, Ark can be used to extract the contents of one or more files directly from the command-line, without
launching its GUI.
When the -c (--add) option is used, Ark prompts for files that should be added to a new archive or to an existing archive.
OPTIONS -d, --dialog
Show a dialog for specifying the options for a batch or add operation.
-o, --destination directory
Default the extraction directory to directory. If not passed, the current path is used.
Options for adding files
-c, --add
Query the user for an archive filename and add specified files to it. Quit when finished.
-t, --add-to filename
Add the specified files to filename. Create archive if it does not exist. Quit when finished.
-p, --changetofirstpath
Change the current directory to the first entry and add all other entries relative to this one.
-f, --autofilename suffix
Automatically choose a filename, with the selected suffix (for example rar, tar.gz, zip or any other supported types).
Options for batch extraction
b, --batch
Use the batch interface instead of the usual dialog. This option is implied if more than one url is specified.
-e, --autodestination
The destination argument will be set to the path of the first file supplied.
-a, --autosubfolder
Archive contents will be read, and if detected to not be a single folder archive, a subfolder by the name of the archive will be
created.
EXAMPLES
ark --batch archive.tar.bz2
Will extract archive.tar.bz2 into the current directory without showing any GUI.
ark -b -d archive.tar.bz2 archive2.zip
Will first show an extraction options dialog and then extract both archive.tar.bz2 and archive2.zip into the directory chosen in the
dialog.
ark --add-to my-archive.zip photo1.jpg text.txt
Will create my-archive.zip if does not exist and then add photo1.jpg and text.txt to it.
AUTHORS
Ark is currently maintained by Harald Hvaal haraldhv@stud.ntnu.no and Raphael Kubo da Costa kubito@gmail.com.
This man page was first written by Lauri Watts lauri@kde.org in 2005 for KDE 3.4, and was later updated in 2009 by Raphael Kubo da Costa
kubito@gmail.com.
AUTHORS
Lauri Watts <lauri@kde.org>
Author.
Raphael Kubo da Costa <kubito@gmail.com>
Author.
K Desktop Environment 2.13 (KD 2009-09-10 ARK(1)