10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have files in a Linux directory . Some of the file is listed below
-rw-rw-r--. 1 roots roots 0 Dec 23 02:17 zzz_123_00000_A_1.csv
-rw-rw-r--. 1 roots roots 0 Dec 23 02:18 zzz_121_00000_A_2.csv
-rw-rw-r--. 1 roots roots 0 Dec 23 02:18 zzz_124_00000_A_3.csv
drwxrwxr-x. 2 roots roots 6 Dec 23... (4 Replies)
Discussion started by: Balraj
4 Replies
2. Shell Programming and Scripting
Hi
I was trying to zip some file in a directory using the below command.
find /dir1/dir2/ -name "asdf*.txt" -print | zip -m /dir1/dir2/dir3/asd_Date.zip -@
Its getting zipped.But when I am trying to unzip,
Its getting unzipped with full directory structure.
Is there any command... (1 Reply)
Discussion started by: ginrkf
1 Replies
3. Shell Programming and Scripting
Hi folks,
In my application there is a job running which create a .dat file along with it zip file also at unix box location /opt/app/cvf/temp1
so in temp1 directory I have one .dat file and its zip file also.
Now since this job runs every day so if a job runs today there will be two files... (5 Replies)
Discussion started by: punpun66
5 Replies
4. Shell Programming and Scripting
Does anyone know of a way to zip the resulting file from a find command?
My approach below finds the file and zips the entire directory path, which is not what I need.
After scanning the web, it seems to be much easier to perform gzip, but unfortunately the approach must use zip.
find `$DIR`... (5 Replies)
Discussion started by: koeji
5 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 Advanced & Expert Users
Is there a way to allow a user to use sudo cp on a specific directory and only a specific file? (6 Replies)
Discussion started by: cokedude
6 Replies
7. Shell Programming and Scripting
Hi,
I need a specific list of files to be zip automatically. based on the criteria
Criteria:
1. It should not be the current file and not less than 10 files
e.g in a folder contails 100 files
jan 50 -> contains ->45 zip files e.g. XXX.gz 5 normal log files e.g XXX.log
... (11 Replies)
Discussion started by: jagkoth
11 Replies
8. UNIX for Dummies Questions & Answers
Hi,
How could compress a file with a specific name. For example if I put the following:
gzip -f file.dat
I compressed it with the same file name to compress, "file.dat.gz". How could compress it with the name I want for example test.gz.
Thanks. (4 Replies)
Discussion started by: pepeli30
4 Replies
9. Shell Programming and Scripting
Hi All,
I would like to extract specific file from a zip archive.
I have a zip archive "sample.zip".
sample.zip contains few text files and images... text1.txt, text2.txt, pic.jpg etc...
I need to read specific file "text2.txt" from "sample.zip" WITHOUT EXTRACTING the zip file.
... (4 Replies)
Discussion started by: sridharg
4 Replies
10. UNIX for Dummies Questions & Answers
If a zip file contains several zip files, but if the file names of the files needed are known, is there a variation of the unzip command that will allow those few (individual) files to be extracted?
---
Example:
Zip file name: zip.zip
unzip -l zip.zip will display file01, file02, file03, etc.... (1 Reply)
Discussion started by: HLee1981
1 Replies