11-13-2007
Quote:
Originally Posted by
gus2000
Well, this *should* work. There are caveats, tho. First, the pattern should be quoted, since it will be expanded by the shell if it matches any files in the current directory. Second, the filename must match precisely, path and all. Are you sure the file is stored in the archive as "./foo.bar" ?
hmm...i tried with the quotes but the ./status_* still isnt finding a match. here is the contents of one of the tar files:
tar -tf /export/home/psxfer/history/archive/history.20070101.tar
./status2_2007010107:00.lis.gz
./status3_2007010107:00.lis.gz
./status_2007010107:00.lis.gz
./RSCAR084_482134.pdf.gz
./rscem001_482111.lis.gz
./rscem002_482114.lis.gz
./rscem006_482110.lis.gz
./rscem006_482113.lis.gz
./rscbi068_482140.lis.gz
./RSCPT002_482144.pdf.gz
./rscpt003_482143.txt.gz
./rscpt004_476773.txt.gz
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files.
a) /usr/users/oracle/bin
b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies
2. Shell Programming and Scripting
Hey guys complete n00b here so I'll try my best at explaining.
I'm creating a backup and restore utility and decided to use tar. I create a backup folder in each user's account and when backing up (say word processing files), I use the following:
tar cvf /home/user/backup/wpbackup.tar... (2 Replies)
Discussion started by: EwanD
2 Replies
3. 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
4. Shell Programming and Scripting
Hi all,
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies
5. Shell Programming and Scripting
Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below.
I am on a solaris server btw.
Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose.
... (2 Replies)
Discussion started by: goddevil
2 Replies
6. Shell Programming and Scripting
Hi,
Can somebody help me?
I am testing a demo with the given function
PATH525="/uscms/home/emily/READme/extra/data/"
TEMP=temp
FileName=DataFileName
CopyFiles() {
# PATHNAME="$paths" ... (9 Replies)
Discussion started by: emily
9 Replies
7. Shell Programming and Scripting
I have some 50+ files in the following format :
abcd_vish_running_ZEBRA_20140818.dat_08-14-2014_23:08:23
abcd_vish_running_ZEB-RA_20140818.dat_08-14-2014_23:08:35
abcd_vish_running_ZEB_RA_20140818.dat_08-14-2014_23:08:37
abcd_vish_running_RI-NG_20140818.dat_08-14-2014_23:08:42... (5 Replies)
Discussion started by: SriRamKrish
5 Replies
8. Shell Programming and Scripting
I have a directory tree containing archive .tar.gz files that I want to extract at the location where they recide.
How can I achieve such an operation? (7 Replies)
Discussion started by: kristinu
7 Replies
9. Shell Programming and Scripting
In the bash below each .tar.bz2 (usually 2) are extracted and then the original .tar.bz2 is removed. However, only one (presumably the first extracted) is being removed, however both are extracted. I am not sure why this is? Thank you :).
tar.bz2 folders in /home/cmccabe/Desktop/NGS/API
... (3 Replies)
Discussion started by: cmccabe
3 Replies
10. 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
DLB(6) Games Manual DLB(6)
NAME
dlb - NetHack data librarian
SYNOPSIS
dlb { xct } [ vfIC ] arguments... [ files... ]
DESCRIPTION
Dlb is a file archiving tool in the spirit (and tradition) of tar for NetHack version 3.1 and higher. It is used to maintain the archive
files from which NetHack reads special level files and other read-only information. Note that like tar the command and option specifiers
are specified as a continuous string and are followed by any arguments required in the same order as the option specifiers.
This facility is optional and may be excluded during NetHack configuration.
COMMANDS
The x command causes dlb to extract the contents of the archive into the current directory.
The c command causes dlb to create a new archive from files in the current directory.
The t command lists the files in the archive.
OPTIONS AND ARGUMENTS
v verbose output
f archive specify the archive. Default if f not specified is LIBFILE (usually the nhdat file in the playground).
I lfile specify the file containing the list of files to put in to or extract from the archive if no files are listed on the command
line. Default for archive creation if no files are listed is LIBLISTFILE.
C dir change directory. Changes directory before trying to read any files (including the archive and the lfile).
EXAMPLES
Create the default archive from the default file list:
dlb c
List the contents of the archive 'foo':
dlb tf foo
AUTHOR
Kenneth Lorber
SEE ALSO
nethack(6), tar(1)
BUGS
Not a good tar emulation; - does not mean stdin or stdout. Should include an optional compression facility. Not all read-only files for
NetHack can be read out of an archive; examining the source is the only way to know which files can be.
4th Berkeley Distribution 28 Oct 1993 DLB(6)