Red Hat / Fedora :: Replace Newer Files When Extracting From Tar?
Jan 29, 2011
Oftentimes, I want to restore a directory from a tar.gz backup file.When I extract the backup tar.gz, is there a way to make it only replace newer files in t directory?Currently, I have only been able to achieve this bydeleting the entire target directory and extracting the entire backup file. This is timeonsuming because the backups are sometimes hundreds of gigabytes.
View 8 Replies
ADVERTISEMENT
Jan 18, 2010
After having downloaded unrar, I find I can't actually use it to extract rar files. Whenever I use the command unrar e filename.rar, (obviously using the correct filename), I just get told there's no such file or directory.
View 3 Replies
View Related
Jul 18, 2011
I am using XFCE spin Fedora, so my default archiver is Xarchiver. I have downloaded a 2 part .RAR file, and when I used to use them in Windows, I would tell WinRAR to extract the first part, and then it would automatically start extracting part 2 if it was in the same directory. When I try to do the same in Xarchiver it tells me "An error occurred! Please check the 'Store archiver output' option to see it." I don't know what 'store archiver output' is or how to access it. What do I need to do to extract both components and successfully join them?
View 6 Replies
View Related
Jun 13, 2010
I'm trying to extract all files permissions and write them in a text file in order to use regular expression(using python) and search for world writeable files
View 2 Replies
View Related
Feb 27, 2010
I am new in Linux and I need to extract alot of zipped files (different format (e.g tar.gz, tar.gz2)) which are in subdirs and I do not want to go to each subdir and extract each file because it will take alot of time. Is there away to extract all files that are existing in dirs and subdir with "for loop" or is there a script that can do the job automatically.
View 1 Replies
View Related
Jun 27, 2011
I have a file that is in almost all my /home web accounts, here: /home/accountXXXX/public_html/cms3.0.php in that file is a line I want to get rid of: <script id="jslocal" language="JavaScript" type="text/javascript" src="/site-local/local.js"></script>
is there a simple shell script that would recurse all /home/xxx/public_html directories, and then yank this line (it will always be exactly the same) and better yet, for future, is there any way I can REPACE that line with another..
View 2 Replies
View Related
Jun 24, 2010
I have a bunch of split Z files and I want to extract them but I cannot find how. To be more specific I have a file named foo which is compressed into files foo.0Z, foo.1Z foo.2Z. I have tried uncompress but does not work I have tried gunzip,gzip etc but no result either. Even 7zip will not do the work.
View 4 Replies
View Related
Apr 26, 2011
How to extract rar files in RedHat Linux?
View 8 Replies
View Related
Feb 6, 2011
Kernel 2.6.21.5, GNU/Linux (Slackware 12.0).
A tool to extract metadata from a WAV file and present it in human readable form?
View 4 Replies
View Related
Apr 22, 2011
I have a backup of a Windows OS done by Clonezilla but would like to know if its possible to extract the files from a Windows computer from the backup CD where the backup was saved . Can this be done and what software will be able to help.
View 2 Replies
View Related
Sep 22, 2010
I'd like to extract a single column from 5 different files and put them gether in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is:awk 'NR==FNR{a[NR]=$2; next} {print a[FNR], $2}' file1 file2I added the file3, file4 and file5 at the end, but it doesn't work. Does anyone know what do I have to do?
View 5 Replies
View Related
Feb 8, 2010
is that my ar928x atheros wireless connection is severely slow. To fix it I've heard ndiswrap and so I've downloaded the XP driver from HP's support site (a pavilion dv7-1450us Notebook PC) and met a brick wall. The file is sp45222.exe and it contains seemingly no .bin .inf or .sys files that ndiswrap dearly requires. I've tried extracting it on a windows machine with UniExtract. This gives only three files one of which UniExtract can extract into a compilation of folders none of which have the required files. I've also attempted to use cabextract on my Ubuntubox, but not cabs come out. I have unshield, if that's relevant at all. What on Earth am I doing wrong?
View 3 Replies
View Related
Jul 20, 2010
I am trying to extract a .tgz file. I have used the command tar - xvwzf filename.tar but I get the following error:
gzip: stdin: decompression OK, trailing garbage ignored
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
root@test:/datastore/Newfolder# tar -xvwzf filename.tgz
View 9 Replies
View Related
Sep 23, 2010
I don't know almost anything about it so I was thinking of asking this question from the experts.I recently downloaded the xPUD 0.9.2.I LOVE that OS!It's simple,fast and smart.I just would like to add some other programs to it somehow.Is that possible for ex. extracting the image,modifying files,then remaking the iso?(Talking in Windows7)I would like to add some programs like Wine and some games also.Please reply as soon as possible because the xpud site is down for bandwidth exceeded.
View 2 Replies
View Related
May 24, 2011
I need to know file names in torrent without opening torrent client. Know and extract for further actions.
View 2 Replies
View Related
Aug 23, 2010
I am trying to develop a method of reading files generated by other programs. I am trying to find the most versatile approach. I have been trying bash, and have been making good progress with sed, however I was wondering if there was a "standard" approach to this sort of thing. The main features I would like to implement concern reading finding strings based on various forms of context and storing them to variables and/or arrays. Here are the most general tasks:
a) Read the first word(or floating point) that comes after a given string (solved in another thread)
b) Read the nth line after a given string
c) Read all text between two given strings
d) Save the output of task a), task b) or task c) (above) into an array if the "given string(s)" is/are not unique.
e)Read text between two non-unique strings i.e. text between the nth occurrence of string1 and the mth occurrence of string2
As far as I can tell, those five scripts should be able to parse just about any text pattern. I am by no means fluent in these languages. But I could use a starting point. My main concern is speed. I intend to use these scripts in a program that reads and writes hundreds of input and output files--each with a different value of some parameter(s).
The files will most likely be no more than a few dozen lines, but I can think of some applications that could generate a few hundred lines. I have the input file generator down pretty well. Parsing the output is quite a bit trickier. And, of course, the option for parallelization will be very desirable for many practical applications.
View 14 Replies
View Related
Mar 29, 2010
I have to copy some log files with a cron job; I'd like to copy only the newer files added because I run the script with a weekly cron. all the log files are named like "10-03-29.CVS" and reside in a dir. When I copy I'd like to copy only the files not already copied with the last cron job.
View 8 Replies
View Related
Aug 28, 2010
new to ubuntu and linux, and using Lucid 10.04 LTS ok, i'm trying to get XBMC going, and following a nice step by step instruction on wiki.xbmc.org, but now i'm stuck at this step... In Ubuntu the SVN Repositories are not automatically added. You must add them manually. First, download the SVN Repo Installer from: [URL] Extract it to the ~/.xbmc/plugins/programs directory. If this directory does not exist, run XBMC one time and then exit back to Ubuntu. The directory should now exist.
i ran xbmc once (after the video driver problem was solved, though it messed up my dual monitors, gotta figure that one out yet.) i got the zip file, it's in my downloads. now my newbness really shows... i can't find an 'extract' command for gnome, can't find the .xbmc directory using the file browser, can't figure out how to hunt for folders instead of files, and don't know how to look inside folders i don't have permission to, that is, i don't know if there's a 'sudo' like option for the file browser. i've been searching the forums, but without the correct search terms, i'm wading in an ocean. i really want to give ubuntu an honest try, but i feel like a foreigner. EDIT: btw, up to this point, the forums have been invaluable, you all are great.
View 2 Replies
View Related
May 24, 2010
I have unison running on both my laptop and desktop, both use Ubuntu 10.04 (AMD64), I have my unison script set up to copy new files, but when it have 2 files already in place I have to manually tell it how to deal with it (either copy laptop->desktop or visa-versa). I would prefer to just run unison and click go, or possibly have an icon on the desktop I can click to automatically run it. how to set it in the script file to copy the newest file over the older file, whether it be laptop -> desktop or desktop -> laptop?
I have it set up so I can do work on my desktop machine, then when I want to leave my desk to work elsewhere, I run unison on the laptop and synchronize my Firefox bookmarks, emails and schoolwork so I can continue from where I left off and when I get back I run unison again to synchronize all my changes back to the desktop.
View 2 Replies
View Related
Oct 11, 2010
I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.
Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'
The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.
View 1 Replies
View Related
May 3, 2010
Is there a way to update my distro with a newer version and not disturb saved media files? Music and pictures etc. Can I move them to another partition. Its there a better way than to save it to disk?
View 13 Replies
View Related
Jun 1, 2010
I've just downloaded a vidio from ..... and converted it to an .avi file. What I want, however, is just the soundtrack as an .mpg to add to my mp3 player. I'm sure Fedora has software to do this, but I don't know enough about audio/video editing to know where to look.
View 4 Replies
View Related
Aug 9, 2011
My OS is Fedora 14 - 64bit. I want to extract and install this file "LEXMARK-INKJET-LEGACY-wJRE-1.0-1.x86_64.rpm.sh.tar.gz". At the moment this is in the download box in the top left corner of my monitor.
I have tried several ways, but all I get is Command Line Output. Gzip:stdin: unexpected end of file./bin/gtar: unexpcted EOF archive. /bin/gtar: error is not recoverable: exiting now.
View 1 Replies
View Related
Mar 17, 2010
I created a tar of the /var/www/html directory from a live web server and I want to extract it onto another server that will eventually become a backup server to the live server.When I extract the tar file, I see the whole directory structure /var/www/html. How do I extract the file just leaving the contents of the html directory in the directory of the new server?
View 1 Replies
View Related
Feb 11, 2010
I am trying to extract data from the xml file using c coding. here is the sample code. this code gets compiled with errorfree. but the call back functions start and end are not invoked. coding:
#include<stdio.h>
#include<string.h>
#include<expat.h>
[code]...
View 1 Replies
View Related
Dec 13, 2010
I made a bzip2 file by
bzip2 -c /home/os/picture1 > /home/os/Desktop/pic.image
bzip2 -c /home/os/picture2 >> /home/os/Desktop/pic.image
But now extracting pic.image by bzip2 -d /home/os/Desktop/pic.image returns
bzip2: Can't guess original name for pic.image -- using pic.image.out
And then it just creates one file pic.image.out.
How do I access picture1 and picture2 from pic.image?
View 2 Replies
View Related
Jun 14, 2011
I want to run rsync on server A to copy all files from Server B when they are newer than 7 days.(find . -mtime -7) I don't want to delete the files on Server B.
View 2 Replies
View Related
Jul 8, 2011
I wish to set up a backup and recovery procedure for a linux machine. However, when I extract the archive, the system works fine until the next time I want to boot up. Then the system behaves as if it does not know what to do after running bios.Am I missing something simple? Complex?I am trying to isolate the error now, but here is the error recreation procedure so far.Error recreation procedure:
-install Fedora 15 from live CD
-power down
-disconnect the usb DVD drive
[code]...
View 4 Replies
View Related
Jul 20, 2009
For example, if I choose to install Fedora 11, then never upgrade to Fedora 12,13, etc. Will newer packages work on the old Fedora 11, or will I have to constantly upgrade to be able to use newer RPM packages?
View 1 Replies
View Related
Sep 22, 2010
I use a BLAG (F12) with a free-kernel 2.6.32.21-libre.168.fc12.x86. I'd like to install a newer kernel (.35). But don't know what is the better way to do this. Is it to download the .35 src.rpm and rebuild the RPM under F12 ? Or should I compile it since the source ?
View 2 Replies
View Related