08-05-2011
Unpack individual files from tarball
Say you don't want to unpack the whole thing, just individual files or directories within a .tgz. How to do this?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello
I have a ton of files in a directory of the format app.log.2008-04-04
I'd like to run a command that would archive each of these files as app.log.2008-04-04.tgz
I tried a few combinations of find with xargs etc but no luck.
Thanks
Amit (4 Replies)
Discussion started by: amitg
4 Replies
2. Red Hat
Hi all,
I want to unpack some files .Files and their sizes are:
1. Linux9i_Disk1.cpio -- 500m
2. Linux9i_Disk2.cpio--- 600m
3.Linux9i_Disk3.cpio---- 250m
I used cpio -idmv Linux9i_Disk1.cpio command to unpack the files. But Its taking more time to unpack the files.What could be the... (2 Replies)
Discussion started by: William1482
2 Replies
3. Shell Programming and Scripting
i have about 30 .EAR files, every ear file have 1 .JAR file.
so i need to extract .EAR files then extract .JAR files, and one important thing is that every archive must bee extracted to separate folder.
i try with gzip, but when i extract 30 ear files i cant make separate folders.... (1 Reply)
Discussion started by: waso
1 Replies
4. Shell Programming and Scripting
I want to be able to convert the following data from a CSV into individual variables from the columns 2 4 and 8
I can use awk to grab the columns using var1=`cat text.csv | awk "," '{print $2}'` but how do I create separate variables for each line.
595358 ,ECON1010 ,THU ,08:00 - 10:00 ,11 Mar... (6 Replies)
Discussion started by: domsmith
6 Replies
5. Shell Programming and Scripting
Hi All,
I am using the awk command to replace ',' by '\t' (tabs) in a csv file. I would like to apply this to all .csv files in a directory and create .txt files with the tabs.
How would I do this in a script?
I have the following script called "csvtabs":
awk 'BEGIN {
FS... (4 Replies)
Discussion started by: ScKaSx
4 Replies
6. 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
7. Solaris
I have some Solaris 9 systems and I'm interested in using the "fm" audit class to track changes to sensitive files but it's too verbose for it to be auditing to that level for EVERY file, so I was wondering if there were a way of restricting the audit of those events to particular files.
I... (0 Replies)
Discussion started by: thmnetwork
0 Replies
8. Shell Programming and Scripting
Hi all,
I'll like to search a list of tems in a huge file and then output each of the terms to individual files. I know I can use grep -f list main.file to search them but how can I split the output into individual files? Thank you. (6 Replies)
Discussion started by: ivpz
6 Replies
9. Programming
As a newbie to Python, I am trying to write a script in which is will add all the log files (*.log) from within a directory to a list, open the files and search for an ip using a regex and single it out (appending the ip's to the list). So far, I have:
import re, os
def list_files()
content = ... (4 Replies)
Discussion started by: metallica1973
4 Replies
10. Shell Programming and Scripting
Hi,
I have a problem with unzipping some file.xml.bz2 files to file.xml using while loop.
all other processing on files is successfull except bunzip2.
here is my piece of code
while read i
do
bunzip2 $i
done<file.lst;
output
: No such file or directory.le... (14 Replies)
Discussion started by: maroom
14 Replies
XDMS(1) General Commands Manual XDMS(1)
NAME
xdms - decompressing Amiga DMS files
SYNOPSIS
xdms [-d destdir] [-p passwd] [-q] [-v] <command> dmsfile [outputfile]
Commands:
xdms u Unpack file
xdms b Show attached banner
xdms d Show attached FILEID.DIZ
xdms f View full image information
xdms t Test archive
xdms v View DMS archive information
xdms x Extract files inside DMS archives using readdisk
xdms z Unpack to disk image and compress with gzip
DESCRIPTION
This manual page documents briefly the xdms command.
xdms is a tool for decompressing Amiga DMS files. DMS files contain disk images that are these days mainly useful for Amiga emulation. It
can unpack DMS images to ADF images.
OPTIONS
-d destdir
Unpack to a separate destination directory.
-f Override errors. Useful for desperate data salvaging.
-p passwd
Decrypt with a password.
-q Be quiet.
-v Be verbose.
Examples
To unpack a DMS file, do:
xdms u foo.dms
BUGS
Maybe.
SEE ALSO
amigadepacker(1), lha(1), ppcrack(1), uae(1). unadf(1), unlzx(1), xPK(1)
AUTHOR
xdms was written by Andre' Rodrigues de la Rocha, but now hosted and maintained by Heikki Orsila <heikki.orsila@iki.fi>.
This manual page was written by Gurkan Sengun <gurkan@linuks.mine.nu>, for the Debian project, and Heikki Orsila <heikki.orsila@iki.fi>.
December 11, 2005 XDMS(1)