It's been a while but can't wildcards be used with tar?
Ala,
tar -xvf /dev/my/tape/device ./*myfile*
EDIT:
Yeah, the wildcards work just fine. I would attempt to extract your file with prefix and postfix "*" although, you might pull a bunch of unwanted files. Depends on how unique the filename was.
Here is my testing the wildcards:
Code:
FreeBSD:auswipe:/home/auswipe/test $ ls -al
total 20
drwxr-xr-x 2 auswipe auswipe 512 Aug 21 11:55 .
drwxr-xr-x 67 auswipe auswipe 4608 Aug 18 02:00 ..
-rw-r--r-- 1 auswipe auswipe 458 Aug 15 10:20 clean.c
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file1
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file2
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file3
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file4
-rwxr-xr-x 1 auswipe auswipe 64 Aug 15 10:35 test.sh
FreeBSD:auswipe:/home/auswipe/test $ tar -cvf mytar.tar *
clean.c
file1
file2
file3
file4
test.sh
FreeBSD:auswipe:/home/auswipe/test $ rm c*
FreeBSD:auswipe:/home/auswipe/test $ rm f*
FreeBSD:auswipe:/home/auswipe/test $ rm t*
FreeBSD:auswipe:/home/auswipe/test $ ls -al
total 18
drwxr-xr-x 2 auswipe auswipe 512 Aug 21 11:55 .
drwxr-xr-x 67 auswipe auswipe 4608 Aug 18 02:00 ..
-rw-r--r-- 1 auswipe auswipe 10240 Aug 21 11:55 mytar.tar
FreeBSD:auswipe:/home/auswipe/test $ tar -xvf mytar.tar *f*
file1
file2
file3
file4
FreeBSD:auswipe:/home/auswipe/test $ ls -al
total 26
drwxr-xr-x 2 auswipe auswipe 512 Aug 21 11:56 .
drwxr-xr-x 67 auswipe auswipe 4608 Aug 18 02:00 ..
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file1
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file2
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file3
-rw-r--r-- 1 auswipe auswipe 1 Aug 15 09:48 file4
-rw-r--r-- 1 auswipe auswipe 10240 Aug 21 11:55 mytar.tar
Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Hi,
I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape.
Thanks
DOMENICO (3 Replies)
Hi there: I'm new here
Can anyone help me:
I have DS15 Alpha server : Unix 5.1B
Now i need to connect a DLVT VS80 1U Rackmount Tape Drive unit.
What is the exact comman to mount the DLTape IV??
How do i make backuo @ copy file to the tape?
Thanx to all (0 Replies)
I have one file say CM.txt which contains values like below.Its just a flat file
1000,A,X
1001,B,Y
1002,B,Z
...
..
total around 4 million lines of entries will be in that file.
Now i need to write another file CM1.txt which should have
1000,1
1001,2
1002,3
....
...
..
Here i... (6 Replies)
I've got a backuptape in cpio format that was accidentally overwritten with a very small batch file. As I assume that the cpio header has been overwritten, I cannot extract files from the backup in the conventional manner:
( cpio -itv </dev/rct0
cpio: this is not a cpio file, bad header)
... (0 Replies)
Hi Guys,
I have file A.txt
File A Data
AK1521
AK2536
AK3164
I want create text file of all data above and write some data on each file.
want Output on below folder
/home/kka/out
AK1521.txt
Hi
Welocme (3 Replies)
I have file which contains a huge amount of data. I need to search the pattern Message id. When that pattern is matched I need to get abcdeff0-1g6g-91g3-1z2z-2mm605m90000 to another file.
Kindly provide your input.
File is like below
Jan 11 04:05:10 linux100 |NOTICE... (2 Replies)
Hello ppl
I have a requirement to split (cut in unix) a file (A.txt) which is a pipe delimited file into A1.txt and A2.txt
Now I have to join (paste in unix) this A2.txt with external file A3.txt to form
output file A4.txt which should be CSV (comma separated file) so that third party can... (25 Replies)
Discussion started by: etldev
25 Replies
LEARN ABOUT MOJAVE
device_maps
device_maps(4) File Formats device_maps(4)NAME
device_maps - device_maps file
SYNOPSIS
/etc/security/device_maps
DESCRIPTION
The device_maps file contains access control information about each physical device. Each device is represented by a one line entry of the
form:
device-name : device-type : device-list :
where
device-name This is an arbitrary ASCII string naming the physical device. This field contains no embedded white space or non-
printable characters.
device-type This is an arbitrary ASCII string naming the generic device type. This field identifies and groups together devices
of like type. This field contains no embedded white space or non-printable characters.
device-list This is a list of the device special files associated with the physical device. This field contains valid device
special file path names separated by white space.
The device_maps file is an ASCII file that resides in the /etc/security directory.
Lines in device_maps can end with a `' to continue an entry on the next line.
Comments may also be included. A `#' makes a comment of all further text until the next NEWLINE not immediately preceded by a `'.
Leading and trailing blanks are allowed in any of the fields.
The device_maps file must be created by the system administrator before device allocation is enabled.
This file is owned by root, with a group of sys, and a mode of 0644.
EXAMPLES
Example 1: A sample device_maps file
# scsi tape
st1:
rmt:
/dev/rst21 /dev/nrst21 /dev/rst5 /dev/nrst5 /dev/rst13
/dev/nrst13 /dev/rst29 /dev/nrst29 /dev/rmt/1l /dev/rmt/1m
/dev/rmt/1 /dev/rmt/1h /dev/rmt/1u /dev/rmt/1ln /dev/rmt/1mn
/dev/rmt/1n /dev/rmt/1hn /dev/rmt/1un /dev/rmt/1b /dev/rmt/1bn:
FILES
/etc/security/device_maps
SEE ALSO allocate(1), bsmconv(1M), deallocate(1), dminfo(1M), list_devices(1)NOTES
The functionality described in this man page is available only if the Basic Security Module (BSM) has been enabled. See bsmconv(1M) for
more information.
SunOS 5.10 16 Jan 2001 device_maps(4)