General :: Script To Delete Selected BackupFiles And Restore Selected Backup File?

Jul 18, 2010

i am new to linux and i nid a bash script to Delete selected backup files and also restore selected backup file to a user define directory.

View 3 Replies


ADVERTISEMENT

Ubuntu :: Make Shell Script To Delete Selected Entries Of A Log File?

Jun 26, 2010

I have 2 external hdd in wich I have all my files.... yesterday, I have copied all the files from hdd1 to hdd2 and I want to eliminate duplicates so I used FSLint to find them, now, I have a txt file that looks like this code...

now I want to make a shell script to delete all the files/entries (read from the log file) that begin with code...

View 2 Replies View Related

Networking :: Granting Selected User Access To Selected Network Interface?

Oct 3, 2009

I have a multi-user machine with several network interfaces (Ethernet, if that matters). I wish to grant selected users, or groups, full access to selected network interfaces (including ability to adjust IP address and to bind to low ports, but *only* on those interfaces). It is important to me that an user/group does not such full control over other interfaces. Granting partial, or temporary, root permissions is OK; it's a friendly environment.How do I go about it?System: Linux 2.6.recent; usual Debian setup (can be adjusted if needed).

View 2 Replies View Related

General :: How To Delete Selected Files?

Feb 10, 2010

Assumed I have the following files:

test12.txt
test13.txt
test14.txt
test15.txt

I want to delete the first 3 files with one command. How to do that?

View 8 Replies View Related

General :: Delete Selected Files From Sftp?

Apr 6, 2010

i am trying to delete multiple files from sftp with non-interactive way as per the desire ext. But i am not able to get the proper extension of the files for removing files.

lftp -u ${user},${passwd} sftp://${ip}<<EOF
cd ${path}
rm *${ext}
bye
EOF

View 4 Replies View Related

General :: Backup - Zip Selected Directories Recursively In Linux

Jun 25, 2011

I would like to zip only selected directories(and its child directories as well)I have many directories in the current folder like app, content, db, library etc.But I would like the zip only app and content and its child folders. I am trying the following.

zip -r ../backups/code/20110625 -i app/* -i content/* . *

But I am getting the following error. zip error: Invalid command arguments (nothing to select from)

What is the correct syntax to achieve this?

View 1 Replies View Related

Programming :: Delete - Selected Rows In Perl / CGI?

Apr 6, 2010

How can I delete selected rows of a table in perl/CGI??

View 5 Replies View Related

Programming :: Script To Delete Selected Files?

Aug 4, 2010

I am writing a script to delete certain files
say

Code:
find / -name lighttpd
gives following output
Code:
/etc/init.d/lighttpd
/etc/lighttpd
/home/lighttpd
/opt/lighttpd-1.4.x/src/lighttpd

I do not want to delete file in home directory but rest all. In one shell script. So first line I am clear with but what can be the second line,

View 14 Replies View Related

Server :: Remove Selected Files From A Backup Folder

Jan 24, 2010

I have a backup folder which I need to prune and I've been trying to do a find and destroy action on files in this folder which have not been modified for more than 30 days. I figure if no users complain that their files have been missing for more than 30 days, it's safe to delete them from this folder.

View 13 Replies View Related

General :: Command Line - Move Or Copy Selected File

Jul 16, 2011

How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.

View 7 Replies View Related

Ubuntu :: Messed Up Vital Files Could Go Back In Time And Restore Computer To A Selected Time

Nov 26, 2010

For like windows you can resore your os to a state of peace kind of. If you messed up your vital files you could go back in time and restore you computer to a selected time. I was wondering if you could do that for ubuntu

View 4 Replies View Related

Ubuntu :: Get Selected File Script?

Mar 3, 2011

I am trying to create an option in the right click menu to append the currently selected file/folder to a text file that a script will read later and delete the files in the list. Is there a way I can do that? I know how to write a script to read the text file and delete the list but I don't know how/if you can get the currently selected file with a script. Is that possible?

View 1 Replies View Related

Ubuntu :: Rename A File Then The Entire File Is Selected And Not Only The First Part?

Feb 13, 2011

I'm using Ubuntu for about a half year. Currently version 10.10. The next problem I have with Nautilus: He have it in ListView. If I want to rename a file then the entire file is selected and not only the first part. So the file extension is also selected. I think this is a bug, whoich can be found on the Internet, but I do not find a solution. Does anyone here have a solution?

View 4 Replies View Related

Programming :: Get Name(s) Of File(s) Selected In Window Manager (gnome 2.32) In Bash Script?

Mar 12, 2011

Is there any way to get the name(s) of the file(s) selected in the window manager (gnome 2.32) in a bash script?

View 7 Replies View Related

General :: Assign A Particular Wan To Selected IPs?

Dec 5, 2010

I have 2 wans . I want to assign a particular wan to selected IPs.Will I achieve it by iptables or ?

View 1 Replies View Related

General :: Grub - Which Menu Option Selected After All

Jan 9, 2010

if it's possible to see or retrieve from the system which menu option from the grub boot menu was selected afterall.

View 1 Replies View Related

General :: Install Selected Patch In RHEL 5?

Jul 6, 2011

If we install patach in RHEL5 then we use "yum update" command but it will install all the available patches in the list, but if i want to install any specific patch then how to install this? Is it via "yum update ??"

View 3 Replies View Related

General :: Grub - Error 17: Cannot Mount Selected Partition

Dec 15, 2010

i ran into this issue only because i wanted to learn. I was reading the book, linux troubleshooting and decided to give it a try.

1) I went to /boot/ and moved vmlinuz (kernel file) to my home directory. (/root/)
2) I booted, it didnt boot (as expected) and now the troubleshooting part begins.
3) i entered to grub config mode using c
4) When i press root (hd0, (tab) it gave me 2 partitions. hd0 which is my boot partition hd1 which is my '/' partition. Please keep in mind its LVM and not a physical partition
5) If i do this, root (hd0,1), and press boot, it gives the following error Error 17: Cannot mount selected partition

During my research i found that, LVM is not supported by grub, so kindly confirm me this ? is this the reason i am not able to access my root partition ? i am doing this on vmware so no issues, but just for the sake of learning, can someone tell me some way of restoring it without using any rescure disk (livecd, liveusb etc) ?

View 26 Replies View Related

General :: Make Taskbar Display Only Selected Desktop's Windows

Jan 11, 2010

How do I set the taskbar to display only the windows from the current desktop? I did it once before, but am on a new installation of my distro.

View 3 Replies View Related

General :: 'automate' That 'rows Selected' Preceded By Number Is Always Last Line

Jul 22, 2010

I'm not that familiar with sed and awk in order to be able to solve this problem on my own, so I'm calling on you for a bit of assistance. I'm writing a Nagios plugin to check our Oracle tablespaces and the output is given in one line like this: 1.04007771 TEMP 0 UNDOTBS1 .005340579 USERS 0 7 rows selected. I've been playing around with sed like below to delete the obsolete info and change every second space into a newline:

[code]...

how many tablespaces there are so I'd have to check all databases and 'hardcode' the tablespaces in my script. Is there any way to 'automate' this knowing that 'rows selected' preceded by a number is always the last line and using a sort of counter to auto-adjust the number to put in the -e 's/ / /2' part?

View 7 Replies View Related

General :: Error Opening/initializing The Selected Video_out (vo) Device

Nov 3, 2010

while opening any video with gmplayer it gives the fatal Error opening/initializing the selected video_out (vo) device. while playing with mplayer it doesnot goto full screen video output mode while pressing F.

View 13 Replies View Related

Security :: Site Definitely Hacked - Can't Delete Files To Restore Backup

Apr 9, 2010

I've discovered that after restoring my site's backup this has happened to me again. How to delete the hacked /home/crocbits directory so that I can restore the backup under the same username. When I try to delete /home/crocbits I get this message when logged in as root:

[Code]...

View 9 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

Ubuntu :: There Was An Error Installing The Selected File, Index.theme Doesn't Appear To Be A Valid Theme

Mar 31, 2011

I backed up .themes from /home, but on trying to install them (files don't show as theme packages) it says "There was an error installing the selected file, index.theme doesn't appear to be a valid theme". Did I backup the right thing?

View 1 Replies View Related

General :: Make Ubuntu's Terminal Program Automatically Copy To Clipboard Selected Text / Paste

Jul 6, 2011

i'm used to using putty on a window's machine.With putty whatever you select is automatically on the clipboard without having to right click and select copy.And right click just pastes.

View 1 Replies View Related

Red Hat :: Copying Selected Text Using Vi?

Nov 20, 2010

how can i copy and paste selected text from one file to other using vi in RHEL5.i googled and found some methods,like just use m to mark the start, with an arbitrary buffer name (so you might type mx). Move your cursor down to where you want to stop copying, and type y'x (or d'x if you're cutting and pasting). Then move the cursor to the point where you want to paste, and type p. when i do this it pastes the entire line of which a part is selected so in essence it is working as yy. when i open a new file using vi and try to paste it says "nothing in register".what i exactly want to do is copy only the selected text as shown above in red and paste it in a new file.

View 7 Replies View Related

Debian :: Take A Screenshot Of A Selected Area?

Feb 20, 2011

I use Debian Squeeze and I would like to ask if someone knows a program to take a screenshot of a selected area of my screen. I already know imageshack and scrot, but they don't do what I need because I need to know previously coordinates and the dimension of the selected area. I need a program that I could select a rectangle with my mouse to take a screenshot of that part.I don't know if I'm clear what I'm trying to say is that I need something like this google-chrome plugin[URL]

View 4 Replies View Related

Fedora :: 15 Can't Mount Selected Partition

Jun 3, 2011

I installed 15. I have reformatted the 500mb /boot partition, didn't touch the swap partition, formatted the / partition. Trying to boot, I receive a "cannot mount selected partition". This is a fresh install. I rebooted into the Live CD to do some FS Checks, and got kernal crash, black screen, lots of kernal output while in live CD trying to do FS checks. The only line that looks like it holds any info that may be relevant is the last of the lines that says: Kernal Panic - Not Syncing: Fatal exception interupt PID 1161, comm:irq/21-0000:01: tainted: g d (kernal version) Panic+0x91/0x19c

I did an FS check on /boot and it came back fine. I did an FS check on /, and it came back fine. But then I told it to do an FS check on swap and got the warning that swap is currently mounted, and that if I proceed, it could cause serious system damage, and asked me if I wanted to proceed. I chose no, and it crashed.

---------- Post added at 02:59 AM ---------- Previous post was at 02:42 AM ----------

wait, i think i found the problem. It APPARENTLY installed /boot as ext4. Reinstalling now. Will update momentarily...

---------- Post added at 03:06 AM ---------- Previous post was at 02:59 AM ----------

Nope, i explicity made sure i installed ext3 on boot this time, and it still gives the same boot error, AND i KEEP getting that kernel crash.

View 1 Replies View Related

Ubuntu :: Utility To Kill Selected Window?

Jan 3, 2010

Before I was forced to delete (actually rename) my .gnome2 directory in order to get a fresh start, I had an icon on my panel (task-bar? SSSsssss ) that would kill the next window that I clicked. Useful when a program stops responding.My problem: Rebuilding my panel, I don't recall the name of that utility. I had originally copied it off one either the Applications menu or the System menu but I can't find it now.My questions:What is the name of that kill-next-clicked-window utility?What directory (presumably some place under .gnome2) holds the links to the programs on the panels? My search under the renamed .gnome2 directory yields a lot of nearly empty directories and nothing I can identify as my objective. (In case I get it into my head to manually edit the panel - not likely.)

View 8 Replies View Related

Ubuntu :: Screen Capture Of A Selected Area Hot Key

May 7, 2010

On my Mac, when I press F2, I am able to take a screen shot of a selected area. Is it possible to assign a hot key to do the same thing on my Ubuntu 10.04 PC?

View 4 Replies View Related







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