10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hello
i wish to write the result of these below conditions in a file:
1. in a specific folder, i have many tar.gz files.
2. each tar.gz file contains ".dat" file in sub folders.
3. i wish to get the full path of these .dat files, if i find in it a specific word ("ERROR24").
4. all this... (6 Replies)
Discussion started by: jimmyjames9
6 Replies
2. UNIX for Dummies Questions & Answers
I cant seem to work out how to count the number of executable files in a particular tar archive? Only in a directory as a whole.
I also cant work out how to count number of certain file types in a tar archive. Only the directory, pretty stuck :( (9 Replies)
Discussion started by: Razor147
9 Replies
3. UNIX for Dummies Questions & Answers
I am not able to extract/remove files older than 1000 days from a tar archive in linux system.
#!/usr/bin/perl
@file_list = `find /home/x/tmp/ -name *xxMsg* -ctime +7`;
$file_name = '/home/x/tmp/new_archive.tar';
for... (1 Reply)
Discussion started by: DannyV
1 Replies
4. Shell Programming and Scripting
Hi all,
i've got the following problem:
We've got a shell-script, that creates some different files based on several criteria given, using a sql-script.
After creating, those files are individually zipped and stored, then sent to a ftp-server.
This is all working since 2010, but now they have... (3 Replies)
Discussion started by: Biggreuda
3 Replies
5. UNIX for Dummies Questions & Answers
I have tried:
tar -xfv mytarfile.tar archive/tabv/*
tar -xfv mytarfile.tar --wildcards 'archive/tabv/*'
tar -xf mytarfile.tar -v --wildcards 'archive/tabv/*'
tar -xfv mytarfile.tar --wildcards --no-anchored 'archive/tabv/*'
tar -xfv mytarfile.tar --wildcards `archive/tabv/*`
and none... (5 Replies)
Discussion started by: zapper222
5 Replies
6. UNIX for Dummies Questions & Answers
Hi Folks,
I have a tar.gz compressed file with me, and I want to know the number of files in the archive without uncompressing it.
Please let me know how I can achieve it.
Regards
RK Veluvali (5 Replies)
Discussion started by: vrk1219
5 Replies
7. UNIX for Dummies Questions & Answers
Hi
I want to archive the following all the files and directory like listed below:
$ ls -a
. .. .bash_history .bash_logout .bash_profile .bashrc .emacs .mysql_history public_html .viminfo
What I tried is to use the following command
$ gtar cvzf allmyfiles.tar.gz *
... (1 Reply)
Discussion started by: monkfan
1 Replies
8. UNIX for Advanced & Expert Users
Hi, I would modify to delete the files after creating the tar archive.
How I can modify the following command:
tar -cvvf logswitch.tar `find *.log* -mtime +5`
It create a tar with files that are older than 5 days. (5 Replies)
Discussion started by: Minguccio75
5 Replies
9. UNIX for Advanced & Expert Users
I have a sample directory structire like following
# pwd
/user/test
and I have files like following
out.txt
A/a.txt
B/b.txt
C/c.txt
(A,B,C are directories )
# tar cvf test.tar *
a A/a.txt 1 blocks
a B/b.txt 1 blocks
a C/c.txt 1 blocks
a out.txt 1 blocks
But whenever I give (4 Replies)
Discussion started by: ronald_brayan
4 Replies
10. UNIX for Dummies Questions & Answers
Hello,
I have a tar archive full of compressed .Z (compressed with the compress command) files. I have restored the tar to a disk but am looking for a way to uncompress every file in every sub-directory. Under normal circumstances, I would just change directories and "uncompress *" but with 1600... (3 Replies)
Discussion started by: Kun2112
3 Replies