Ubuntu :: Restore A File After A >file1?

Jun 30, 2010

a collegue has done this for a shell script > test1.sh .lolnow i must rewrite the script.do you have any idea to find my script?

View 2 Replies


ADVERTISEMENT

General :: Replace File1.tgz With Another Version Of The Same File?

May 30, 2010

i got the slackware folder with my builds of my favorites packages, in /tmp i create the new versions of that packages. theres is a way in bash to replace the new ones in /tmp with the old ones in /home/user/slackware??

something like..... in /tmp: mv -i package1.tgz /home/user/slackware | and somethin to replace the old version of the app with the new one

View 8 Replies View Related

Programming :: Adding Line From File1 Into A Line Of Another File Based On Maching IDs

Jan 3, 2011

I wish to add information to one of my files based on matching IDs,

Here is an example

(the id is the 3 colunm)

(the ID is the 2 colunm)

And the output i wish to be

OUTPUT:

So as you can see the ones that do not match are still present, and the ones that do match just have the extra information from file2.txt added to them.

I thought about using join but that only seems to join the ones that match displays thoes only. i would like all the information in the output file.

View 6 Replies View Related

Software :: Restore The Actual File From My_file.c,v File?

Jun 15, 2011

I am browsing our repository and I want to get this folder but all of the files there have ",v" in the end of their filenames and if you open each file, they have some written data which are headers for version control before the actual content of the file. I want to extract the actual content to make the file my_file.c,v --> my_file.c. Is there a command to do this?

I am having lock error and permission errors so I cannot checkout manually using CVS.

View 2 Replies View Related

General :: Merge File1 At End Of Line File2?

Mar 23, 2010

how I can merge the data from file1(data per line) to the end of line of file2. So what I mean is, I want to add every line from file1 to the end of the corresponding line of file2.

View 2 Replies View Related

Ubuntu Networking :: Cifs: Setting Times Of `file1': Operation Not Permitted?

Mar 14, 2010

I have a WD MyBook World NAS share mounted with the following options (I tried also other options):Code:cifs nouser,atime,auto,rw,nodev,noexec,nosuid,nodfs,nounix,guest,uid=0,gid=0,file_mode=0777,dir_mode=0777The cp -a, touch, etc. commands can change the file time if the root is executing the command (means NAS supports time setting), but as an user I can't change the file time - with an exception of changing the time to the current time. For an illustration see below:

Code:
.../tmp> ls -la
total 0

[code]....

View 2 Replies View Related

Programming :: Using File1 As List Of Objects To Search For In File2?

Aug 30, 2010

The goal is to auto-update a webpage that contains links to network devices. These devices are all set to DHCP, and their hostnames are not guaranteed to stay the same, so static IPs or accessing via hostname is NOT an option.

Process: Run a script every hour or so to query devices on the local network to generate a list of responding devices by MAC address and what their current IP is (results.lst). Using a "static" MAC address list file "printers.db" as the database search "results.lst" to find specific MAC addresses. When a match is found, grab the IP from "results.lst" and update "index.html" with the new IP address. No comparison needs to be done between "results.lst" IP and "index.html" IP as I just want to overwrite whatever is there.

Here is what I have so far (using dummy data): PRINTERS.DBProduct Mac Address Printer1 00:00:00:00:00:11 Printer2 00:00:00:00:11:11 Printer3 00:00:00:11:11:11 Printer4 00:00:11:11:11:11 Printer5 00:11:11:11:11:11 Printer6 11:11:11:11:11:11 TEST.SH

Code:

#!/bin/sh
#------------------------------
# Quick Links Updater v2.0 |
# By Rob M. |
# with help from Tim F. |
#------------------------------

[code]....

View 4 Replies View Related

Programming :: Shell Script - Appending File1 To End Of File2

Jun 21, 2010

I'm working on some code where I have two files. I know I can use cat file1 >> file2 to append file1 to the end of file2. What I was wondering is how I could append the first line of file 1 to the end of the first line of file2, then the second line, and so forth.

So if file1 was :
cat
dog
mouse

file2:
orange
red
blue

I want file2 to be:
orange cat
red dog
blue mouse

Also I need it to remove any duplicates from the same horizontal line.

View 5 Replies View Related

General :: Comparing Files - Change The Case Of The Letters In File1.txt

Nov 8, 2009

Two files contain:

file1:
cat
dog
fish
hamster

file2:
cat
fish
ferret
dog

How do you change the case of the letters in file1.txt to uppercase and compare with file2 all in one command?

View 2 Replies View Related

Ubuntu :: Can't Dump / Restore A File

Feb 18, 2010

I got a backup file which first 1000 bytes are as follows:

Code:

00000000 54 41 50 45 00 00 03 00 8c 00 0e 01 00 00 00 00 |TAPE............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000030 02 00 87 05 51 64 50 48 01 00 00 00 01 00 00 00 |....QdPH........|

[code]....

I tried to restore it:

Code:

$ restore -r -f zzz_labxxxx
Checksum error 32615101403, inode 0 file (null)
restore: Tape is not a dump tape

What application could I use or even try? The man who made the backup can't be reached anymore and we had been left with the backup.

View 1 Replies View Related

Ubuntu :: Restore Default Kde File Associations?

Jun 7, 2010

i initially installed ubuntu, working with gnome for a while. i now migrated to kde as i like it better. however, the kde session still has lots of the "old" file associations set as they are in gnome...

some examples? text files open in gedit, instead of kate pdfs open in "document viewer" instead of okular double clicking zip folder opens the "archiver" (gnome?), extracting an archive from the archiver and then pressing the "open folder" dialog after extracting has finished, opens nautilus (although dophin is the default program for inodes). etc.

i'm aware of the possibility to edit file associations, however thats a tedious thingy to do, if you want to get it complete... furthermore, the file association edit dialog has the "defaults" button disabled, hence my questions:

is there any way to "restore" the kde default file associations, just as i would have installed kubuntu initially? i don't want to reinstall just because of this.

View 5 Replies View Related

Ubuntu :: Restore Folders Out Of .tgz Backup File?

Feb 10, 2011

I'm using ubuntu for a few weeks now and i created a backup script that can copy some folders into a .tgz file. Now i want to place back the folders to where they come from and overwrite the original folder. like the /home folder in the .tgz file overwrite the /home folder on my harddrive. I already tried to do this with: tar xvpfz filename.tgz. But after that the folders came in the same folders as the backupfile stands.

How can i do this the right way?

View 1 Replies View Related

Ubuntu :: How To Restore File Deleted From Home Folder

Jun 25, 2011

By naming one of my folders wrong I thought I don't need it anymore and pressed delete button while holding shift. Is there any way I could get that folder back? (I'm actually looking for the file inside that folder - .conky config file to be more precise) I've tried scalpel and extundelete, but none of them worked.

View 2 Replies View Related

General :: How To Restore The /etc/passwd File

Sep 18, 2010

I was doing some experiment about resource-accessing. By mistake, I executed this command,$ sudo mv /etc/passwd /etc/passwd.bakThen I could not execute any command with privilege(eg. sudo mv /etc/passwd.bak /etc/passwd). When I shut the system down, I could not boot it any more.

View 2 Replies View Related

Red Hat / Fedora :: Restore Deleted File ?

Mar 10, 2010

I accidentally deleted one of my very important folder using the command:

That is a very important project done in Plone( a CMS ) is any way to recover my Folder.

View 5 Replies View Related

Ubuntu :: Half Erased Partition - Need To Restore Quicken File

Mar 20, 2011

I have a HP DV9000 laptop. The second hard drive bay doesn't support SATA II devices. I was cloning the original hard drive to the newer SATA II hard drive I purchased two swap them because bay 1 does support SATA II devices. I decided to use

Code:
dd if=/dev/sda of=/dev/sdb
to get the job done. I double/triple checked my command with fdisk -l, but my dyslexia got the better of me. I should have ran
Code:
dd if=/dev/sdb of=/dev/sda
....

I stopped the command about 1/2 hour in, it is a 160GB hdd. I tried using foremost to recover all of the files that hadn't been written over yet, but it can't recover Quicken filetypes. The ONLY thing I need off of this drive is the Quicken database. TL;DR I need to recover a quicken database file off my corrupted partition. What program can I use?

View 1 Replies View Related

Ubuntu :: Restore Point System Restore To As It Was Newly Installed?

May 7, 2011

are there any sweeper / cleaner apps which can take back my installation as to when it was new. I know home directory could have config files etc..but that doesnt matter, i want all packages and applications reset to how it was when i had a clean install. I am using Natty

View 2 Replies View Related

Fedora Networking :: Which File - S - To Restore To Recover Wep Key

Aug 27, 2011

I am about to repave an FC14 box with FC15. To save a bit of mucking about, I would be keen to restore, from backup, the file(s) needed to reactivate my WiFi connection under FC15. I can always rebuild from scratch, but recovering from backup would prevent finger fumbles from making the task harder, as I have a long-winded 128-bit key.

View 9 Replies View Related

General :: Restore A Tar File And Exclude A Directory?

Jan 25, 2010

I am trying to restore a tar file that contains a directory I cannot nor want to restore. How can I explicitly state the name of the directory? command I am using:tar -xzvPXf <tar file name>.tgz exclude-file=<directory>I have tried it with the exclude-file before the tar file name and same results. No restore.

View 3 Replies View Related

General :: How To Get Backup And Restore For F12 File System

Apr 13, 2010

O/S: Fedora 12
I am newbie in linux. What I want to do is: Make backup for my file system, cos I learn how to configure servers. So if I made some thing wrong, I want to be able to restore the default setting for my files. Instated of install new O/S.

View 4 Replies View Related

CentOS 5 :: Restore Fstab Deleted File?

Feb 19, 2011

I accidentally deleted the file called "fstab,v" not "fstab" The files location was /etc/fstab,v if it is very important file and what its used for & how to restore?, as my server seems to be running fine, but I don't want to get into any problems later down the line.

View 5 Replies View Related

Ubuntu Security :: Failing On The First Command When Run Iptables-restore < File Location

May 4, 2010

I'm setting up a server with Jaunty Jackalope version. I'm trying to test setting up a basic iptables rules... No matter which command I put in, it is failing on the first command when I run iptables-restore < file location (the first rule always fails). I'm doing this on the root user and first typing in the iptables rules in a test file. I've tried the first command starting with % sudo, iptables and -A. All have the same result. I've also tried letting the HTTP rule be first with the same result.

[Code]...

View 2 Replies View Related

Ubuntu Installation :: Restore The Home/username File To A Default State?

Jul 1, 2010

System Specs:

CPU: Intel Core2 Quad Extreme X9450
Memory: 4GB, Patriot DDR3 PC3-10666 1333Mhz
MoBo: ASUS P5E3 Delux
OpSys: Ubuntu 10.4 (64Bit)

Short Description: I wanted to see what would happen if I upgraded from Kubuntu 8.04 (32bit) to Ubuntu 10.4 (64bit) by copying my home directory then restoring it after the upgrade. It almost worked sans a few interesting problems that I'm hoping might teach me a bit more about how Ubuntu works.

Detailed Description:

1. I copied my home directory to another hard disk.

2. I let the installation disk for Ubuntu 10.4 (64bit) reformat and overwrite the disk that contained Kubuntu 8.04 (32bit) and chose to maintain the partition and swap size for that disk.

3. Once I worked out some bugs in the hardware and got the OS up and running smoothly, I "merged" my home directory with the backup I had created in step one. (Merge was an option given to me when I was attempting to paste the files copied from the backup disk.)

4. It should also be noted that I was trying for a while last night to install TrueCrypt. In order to do that I had to check its "sig" file. The GUI for the gpg installation was complaining that I didn't have gtk+-2.0 installed so I installed gtk (I think it might have been 2.4 or whatever the most recent one was) from source without any errors. It got late so I gave up on attempting to install TrueCrypt any further.

The Results: This morning the computer seemed to boot faster than it had been before, but I was left without a functioning Theme manager. It will open, and I can click on all of its features, but nothing seems to do anything. For example: If I right click on the desktop and choose "Change Desktop Background" Then select "Get more themes online", nothing happens. Also if I select the "theme" tab, there are only two themes listed when there used to be about 9 by default.

Questions: 1.) Is there a way to restore the files that are important for correct system operation (possibly all the files starting with a dot ".*") in my home directory to there default state like they would have been from a fresh install, but without doing a fresh install and without loosing any of the documents or archives in my home file?

2.) Is this even the correct approach or might this cause more problems? For example, if your computer had this problem would you try and restore the home directory, or would you troubleshoot each problem as it arises one at a time until everything became stable?

3.) What could I do next to continue troubleshooting the theme manager?

I'll keep researching and trying to find some links that can help while I wait for your responses. If I find anything that helps I'll post the fix here.

View 1 Replies View Related

Ubuntu :: Iptables-restore Server Does Not Restore At Boot?

Jan 27, 2010

what could this bei saved my correct iptables file @ Code: /etc/iptables.up.ruleswhere webmin is looking for it.webmin config is to automaticly boot this file and addes a line at.

Code:
/etc/network/interfaces
file

[code]...

View 4 Replies View Related

Debian :: Locate And Restore Apt Source List File?

Apr 10, 2009

I seem to have removed / moved / deleted my /etc/apt/source.list file and was wondering where or how can I locate them again on the web? Is there a place online that has the default repository listings for 'Etch' & 'Lenny'? I did not lose them on both but this is something I would like to know in case it ever happens to me. Seems like this would be something easily available on the web but I can't find it on Debian's site and or via Google.

View 7 Replies View Related

Programming :: Restore Copy Folder&file Permission ?

Dec 16, 2010

I have files and folders various permissions.I copied the files and folders to X server.But I forgot to copy of the permissions.Like is hereHow can restore the permissions?

View 3 Replies View Related

Ubuntu :: Restore A Wubi Root.disk File Backup To A Real Installation?

Mar 9, 2010

I worked everyday during 1.5 years on a Wubi installation of Ubuntu 8.10.

Before quitting my job I have made a simple copy of the root.disk file, thinking I could restore it easily later.

Now I would restore this system on a Virtual Machine (with Virtual Box)

Have you got an idea how i could do this??

(I already tryied to install another wubi on a virtualized Windows 7, the install complete but I can't see ubuntu in the boot loader...)

View 1 Replies View Related

Ubuntu Installation :: Backup Restore - Software Doesn't Start Due To File Permissions

Dec 2, 2010

I re-installed ubuntu 10.04 for prep I did a backup with Simple Backup Config after reinstalling i restored with Simple Backup restore some installed software software now doesn't start and after troubleshooting i think problem is file permissions but i'm not sure which permissions of which files to change and what they should be changed to. has anyone had experience with this and if so is it because it works or because its the right way to do it and it works funny thing.. i can't find any forum posts with info on Simple Backup!

View 1 Replies View Related

Ubuntu Security :: Restore The Original Image File That Have Hidden Data In With Steghide

Jan 27, 2011

i'm wondering if it's possible to restore the original image file that you have hidden data in with steghide. The basic Idea is you have a photo using gpg sign it and then embed the signature. then remove the signature at a later time and check it with the signature. I hope another "inverse" algorithm doesn't need to be written to undo the first (if a "inverse algorithm is possible). This assume you already have the pass phrase or that there is no pass phrase. I already know how to retrieve the original file just want to remove the hidden data from the Image and restore it's attributes.

View 2 Replies View Related

CentOS 5 :: Restore Default File Permissions - Server Nonfunctional

Dec 4, 2009

I was working on a shell script to change the permissions of large directories and subdirectories because of an exploit discovered in the programs that run in those said directories that allow a client to upload and download files to the server. Loan behold I accidentally added a space and had something along the lines of "chmod -R 770 ." run on / logged in as root.

Yes, it was an incredibly noob move on my part, but nothing ventured nothing gained. I am surprisingly calm about this. I tried sliding in my CentOS installation disk and "Upgrading" CentOS but that only made it worse, beforehand I made everything owned by root so I could at least log into GNOME. This does not work for obvious reasons, namely having to change the permissions back for every user and every group, which far beyond a possibility.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved