10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to write a Unix script that will go to a specific directory (/tmp/Sanbox/logs) and tar.gz all the log files in that directory and delete the original files that are older than 2 days. So far I have this but it doesn't work. Any help would be appreciated.
#!/bin/bash
... (7 Replies)
Discussion started by: Loc
7 Replies
2. AIX
Quick question,
is it possible to make a Tar of completely directory and placing the tar file in it (will this cause even the tar file to tarred ?)
sample:
/opt/freeware/bin/tar -cvf - /oracle | gzip > /oracle/backup.tgz
will the tar file backup.tgz also include backup.tgz ?
i tried... (5 Replies)
Discussion started by: filosophizer
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a very puzzling problem. I have a binary file, it is executable but it says "No such file or directory" when I try to run it :
root@debian:~# ls -l bmcfwul
-rwxr-xr-t 1 root root 762808 Mar 11 2010 bmcfwul
root@debian:~# ./bmcfwul
-su: ./bmcfwul: No such file or directory... (9 Replies)
Discussion started by: chebarbudo
9 Replies
4. Shell Programming and Scripting
Hi,
I need to extract a single file from a tar file to another directory.
So far I have this:
This one extract a single file to same directory:
tar -xvf filename.tar ./file.txt
I tried this but its not working
tar -xvf filename.tar /home/dir ./file.txt
or this: (6 Replies)
Discussion started by: erin00
6 Replies
5. Solaris
Hi all,
In Solaris howto extract tar file to specific folder.
This is what we do in Linux, but how to do the same thing in Solaris ?
-tar -xzvf /tmp/etc.tar.bz -C /tmp
(Will extract in /tmp dir)
3.gzip COMPRESSION AND EXTRACTION
-tar -czvf /tmp/etc.tar.bz /etc
-du ... (5 Replies)
Discussion started by: manalisharmabe
5 Replies
6. Shell Programming and Scripting
Hi all,
I am fairly new to shell scripting and I am trying the following:
My shell script creates a tar file with files with the ending ~. The directory - where the files and sub directories are located - comes as a parameter when I call the script. Files that are archived will be written in... (1 Reply)
Discussion started by: neg42
1 Replies
7. UNIX and Linux Applications
Hi,
I need to download tar.exe to archive the files before doing gzip......
I downloaded the executables from Browse GnuWin Files on SourceForge.net
but my concern is whether this particular exe is safe to use? is it a licensed version?
Have anybody downloaded from this site? Need ur advice. (2 Replies)
Discussion started by: Codesearcher
2 Replies
8. UNIX for Dummies Questions & Answers
hi,
i face some problem which need URGENT assistance.
am performing a restoration for recovery in an AIX UNIX server.
when i use the tar -tvf command to view the tape contents,
it gives me /ata1/mydir/myfile.
i understand that how the file was backed up determine whether we could restore... (2 Replies)
Discussion started by: newbie168
2 Replies
9. Shell Programming and Scripting
I want to insert file to tar file (by tar command).
The file is currently in a diffrenet directory and i want to be saved
at the tar file as it was in other directory.
I write the script in korn shell. How can i do it? (0 Replies)
Discussion started by: arielromi
0 Replies
10. UNIX for Advanced & Expert Users
anyone know if it is possable to extract a subdirectory in a tar file.
IE
tarfile contains
parent dir
-sub dir A
-sub dir B
I want to extract sub dir B. (2 Replies)
Discussion started by: Optimus_P
2 Replies