General :: Script To Remove Identical Items From Folders?

Jun 15, 2011

I am trying to do a comparison of two folders, let's call them dir1 and dir2 and remove any items that have the same file name in both folders from dir2.

View 4 Replies


ADVERTISEMENT

General :: Finding And Remove Block Of Identical Strings?

May 16, 2011

i have a problem in finding block of identical strings...i solved the problem in finding consecutive identical words and now i want to expand the code in order to find and remove consecutive identical block of strings... for example the awk code removing consecutive identical word is:

Code:
#!/usr/bin/awk -f
BEGIN{
RS="[[:space:]]+";
ORS=""

[Code].....

View 2 Replies View Related

General :: Remove Duplicate Files From Two Folders?

Aug 19, 2010

I have two folders - Folder abc and Folder xyz which contains 1000's of files with few of them having the same file names. How can I remove the duplicates from Folder abc?

View 14 Replies View Related

Fedora :: Add / Remove Startup Items?

Nov 28, 2010

Okay, two packages in question here: sshd and xrdp.

In the /etc/rc.d/rc5.d directory there is a K??sshd link, I'm not really sure why the default is to kill sshd in graphical mode, but it's there. I saw it coincidentally when I went to add an S??xrdp link so that I could have xrdp run when the computer starts. I restarted the computer, and of course, couldn't connect via my Windows Remote Desktop client. A quick ps -e | grep xrdp in a terminal window showed me that xrdp had not, in fact, started.

I hop back in to ??/rc5.d to see if I messed up creating my link and poof. there's no more S??xrdp link, furthermore, the K??sshd link that I had removed was back.

Okay, so Fedora doesn't like you messing with the init links manually... I can dig it, cause there's this nifty gui tool to manage startup items... I go in to that and add entries for sshd and xrdp, calling them via their init scripts so I can make sure everything plays nicely... then restart.

Oh, wait, still no xrdp or sshd running.

If I manually start these servers using their init scripts from a terminal they run fine, no issues, but I don't want to do that, and I think we can all agree that I should't have to. What am I doing wrong? What is the 'proper' way to add servers to the startup process and since entering runlevel 5 apparently kills sshd, how do I prevent that?

View 4 Replies View Related

Ubuntu :: Remove Items From The Launcher?

Feb 19, 2011

I can see how to add programs to the Launcher. I can also remove some things from the launcher. But there are some things that Ubuntu evidently thinks should never be removed from the launcherFor example I don't like "Files and Folders". It doesn't show the entire folder structure. I can't see how to remove it. Instead I prefer "File Manager".

View 4 Replies View Related

Fedora :: Remove Duplicate Menu Items?

Oct 21, 2009

I have Fedora 11 installed-32bit-with xfce installed as the desktop. When I click on the fedora icon for the menu and select Preferences, there are 2 input methods listed even though I did not have any installed.Since there is no menu editor any more, does anybody know how to edit the menu so that I can get rid of these entries?

View 1 Replies View Related

Ubuntu :: Remove Items From Right Click Menu?

Nov 5, 2010

i would like to remove s#certain items from the right click menu in ubuntu 10.04

i.e. remove functions from the right click menu in 10.04

View 2 Replies View Related

General :: Firefox /Gnome: Remove Down Arrow From Folders In Personal Toolbar

May 29, 2010

In linux version of firefox (specifically in my case Debian's rebranded Iceweasel), folders of bookmarks in the personal toolbar show a little down arrow on the right of the name. It serves no real purpouse and just takes up horizontal space, is there a way to remove it?

View 1 Replies View Related

Debian Multimedia :: Remove Items From Main Menubar?

Dec 17, 2010

I need to remove items from Main Menubar --> Places --> Removable Media and from Computer shortcut.

View 4 Replies View Related

Ubuntu :: Gnome 3 - How To Remove Items From Applications Menu

May 13, 2011

In gnome 3, when I go to activities>applications I either have duplicates (sometimes I do and sometimes I don't) of some programs or no icons for the ones I uninstalled, but they are still there. How do I hide/delete them?

View 2 Replies View Related

Ubuntu :: Remove Kubuntu-Desktop Items Added To 10.04?

Jul 10, 2010

I added Kubuntu-Desktop components to my Ubuntu 10.04 system using Synaptic Pkg Mgr, with the mistaken expectation that I would then be able to toggle between Ubuntu and Kubuntu Desktops. Of course, when adding Kubuntu-Desktop components, the dependencies feature brought in around 8 or 10 items.

I tried to undo all of this, but I fear I may have removed one or two Kubuntu named packages which may be part of the original Ubuntu installation.

Also there remains a gaggle of applications, such as Dolphin, KNetwork Mgr, Konqueror, just to name a few.

The two-fold question is, (1) How can I get back as closely as possible, to my original, pure Ubuntu installation, short of a complete re-install; and (2) Is there a document out there which lists all of the packages that come standard with the Ubuntu installation.

View 2 Replies View Related

Ubuntu :: Remove Items From Nautilus Right-click Context Menu?

Jun 19, 2011

I uninstalled xmms player quite a long time ago. I think when I had hardy heron. Currently I'm on 10.04. When I right click a .mp3 file I still have the option to play with xmms player showing up. Even if I choose an "other application" the xmms player option remains stickied to the top.Does anyone know how I can remove this entry? I did a lot of searching but couldn't find a solution.

View 2 Replies View Related

OpenSUSE :: Rsync Doesn't Remove Old Folders?

Nov 22, 2010

I want to synchronize my home folder from my laptop to my desktop from the local network, but i want to transfer only the visible folders/files... So i am using the following command

Code:
rsync -v-r-e --delete ssh ~/* kokeroulis-desktop@ip_address:~/

The command is transferring the files but it doesn't remove the old folders which they doesn't exist any more.

View 4 Replies View Related

Ubuntu :: Remove All Folders Related To Mono?

Sep 17, 2010

I installed Mono 2.4 and I am struggling myself to remove all folders related to mono.. I didn't install from Synaptic so it's not just 'apt-get autoremove mono', I used the tarball.. how to remove all files from the installation?

View 3 Replies View Related

General :: Confirm That Two Filesystems Are Identical Ignoring Special Files

Jun 15, 2011

/media/A and /media/B should be identical, but I want to confirm before deleting one.

Duplicate file finders don't work, because they'll find two copies of the same file within B, for instance. I only want to confirm that every file in one is identical to the other.

diff -qr /media/A/ /media/B/ seems to work, but the output is cluttered with garbage like

diff: /media/A//etc/alternatives/ControlPanel: No such file or directory

and

File /media/A//dev/tty8 is a character special file while file /media/B//dev/tty8 is a character special file

I can suppress the former with 2> /dev/null, but I don't know about the latter.

rsync -avn /media/A/ /media/B/ also produces a bunch of clutter, like "skipping non-regular file".

How can I compare the two trees and just make sure that all the real files exist in both and are identical?

View 2 Replies View Related

General :: Dump And Restore - Making Client And Server Identical

Jan 12, 2010

Need confirmation if the following scenario works for making my client and server as identical?

My local(source) Linux server @192.168.0.2
My remote Linux client @192.168.0.70
On the local system :
#df -m
Filesystem Mounted on
/dev/hda3 /
/dev/hda1 /boot
tmpfs /dev/shm

On the local system , issue the followings to make client and server as identical :
#dump -0uvf - /dev/hda3 | ssh root@192.168.0.70 -c "restore -rf - /"
#dump -0uvf - /dev/hda1 | ssh root@192.168.0.70 -c "restore -rf - /boot"
#dump -0uvf - /dev/shm | ssh root@192.168.0.70 -c "restore -rf - /tmpfs"

View 1 Replies View Related

General :: SMP Scheduler Support For Identical Cores At Different Clock Speed?

Jan 17, 2011

I am new to the forum and new to Linux.

I am trying to explore if Linux can be run on a multicore platform when the max frequency of one the cores is less than the others.

please give me some pointers or let me know if you have tried such HW configuration.

View 1 Replies View Related

Ubuntu Security :: Remove Delete Permissions On Certain Folders?

Feb 8, 2010

I have a Ubuntu file server with a mix of 30+ users ( mix of windows and linux ).All are members of the same group. All need read write create access. I want to prevent deletion of certain key folders. How can I achieve this ? sudo chmod -R nnnn ??

View 8 Replies View Related

Ubuntu :: Remove Some Files By Extension Only, Going Down Several Folders, While Leaving Everything Else Be?

Apr 21, 2010

I'm a relative cli noob, and I screw something up. I want to remove some files by extension only, going down several folders, while leaving everything else be.I think this might be the the right command / syntax, can someone confirm:Code:rm -rf *.exe *.ini *.!ut /path/

View 9 Replies View Related

General :: In Ubuntu 9.04 - Mount The Different Folders On The Partition To Different Folders In Home?

May 12, 2010

I have a shared NTFS partition ("shared") that I use for data for both Windows and Ubuntu. How can I mount the music folder on shared to $Home/Music, and the Videos folder on shared to $Home/Videos? I want to mount the different folders on the partition to different folders in home.

View 2 Replies View Related

Ubuntu :: Remove Applications And Files And Folders Launcher From Unity?

Apr 30, 2011

how can i remove 'applications' and 'files and folders' launchers from unity in Ubuntu 11.04? Because applications and files and folders are already accessible from typing in the search box which gets opened clicking the top most left button.

View 4 Replies View Related

Ubuntu :: Remove "recent" On Files And Folders New 11.04?

May 3, 2011

On the new 11.04 when you select files and folders, "recent" are displayed at the top, and I can't find any options to make "recent" never appear. I don't know who, on a personal and not work PC, would want their recently uploaded and opened documents and files displayed at a simple click. Imagine this, I take dirty pics with the wife, I upload them to a secret folder, I use the same computer to show vacation pictures to my mom, I click on "files and folders", and poof, my mom sees naked pics of my wife displayed right across the "recent" files and folders section right at the top, regardless of the location of those files on the computer. So to avoid these situations, I would like to know how to disable the "recent" section of files and folders quick pop-out display.

View 5 Replies View Related

General :: Disabling Start Up Items?

May 24, 2010

I'm currently using Debian 5.04 Lenny, and I trying to figure out how I stop things running at boot time, in the simplest way, if possible.

In Redhat/SuSE all I had to do was 'chkconfig xxx off' and it was done, is there an equivalent in Debian? A tool or something.

To find a list of items in Redhat/SuSE all I had to do was 'chkconfig --list' and it displayed a list, is there also an equivalent for this? A tool or something.

View 3 Replies View Related

General :: Grep 2 Items In A File?

Dec 31, 2010

I have collection my routers configuration through rancid. Now i want to do the following,

Display all the files that contain the following words

C1841 AND HWIC-4ESW

I want to display all the files that contains both these words.

View 14 Replies View Related

General :: New Items On Desktop Aren't Showing Up Right Away

Apr 21, 2010

Recently, I'm having a problem with items not appearing on my desktop (at least not right away) after just being saved there, forcing me to either find them in a Konqueror window (they do show up there) or do some other unusual thing to make the desktop notice them. They used to, and as far as I know, they always should. For instance, I just took two screenshots with Ksnapshot, and told it to save them on my desktop. It saved them, but they didn't show up on the desktop. When I noticed that, I opened the desktop folder in Konqueror, and mainly to see what would happen, tried to drag the screenshot files from the Konqueror window onto the desktop (copying the files onto themselves). That made the desktop notice the files--they appeared. But of course I shouldn't have had to do it. What could be wrong?

View 1 Replies View Related

General :: Email Aliases - How To Capture Some Items From Message

Jul 5, 2010

I have an email alias and I want to capture some items in the email body and put it in a database.

I'm using Linux and Bash.
In /etc/aliases I have:
bexpense: "|/usr/bin/bexpense"In /usr/bin/bexpense, I have:
#!/bin/bash
echo $1 $2 >> bexpense.out

If I just run /usr/bin/bexpense with as "bexpense test test" I get "test test" in bexpense.out. If I send email to bexpense@myserver.com, I get a blank line in bexpense.out. How do I get the subject and body of the email?

View 2 Replies View Related

General :: Easy Way To Find Out Like Which Items Don't Match Between 2 Files Regardless Of Order

Mar 15, 2011

I have following 2 files

File1
10.1.1.1
10.1.2.1
10.1.3.1

File2
10.1.3.1
10.1.2.1
10.1.1.1

Both are reverse of each other. Now, basically if you see, the contents are same, but in different order. Is there any easy way in which i can find out like which items dont match between 2 files, regardless of order. Lets say i add 10.1.4.1 to File1. Now the result of such comparison should be only '10.1.4.1'. Currently if i am comparing both files using diff, it gives me all the lines.

View 2 Replies View Related

Ubuntu :: Identical UUID's On Two Different Hdd's

Sep 29, 2010

I have discovered that I have two partitions, on separate hdd's with identical UUID's, and the system switches back and forth erratically on restarts between the two different partitions, giving me the current /home or the /home of two months ago when I did the upgrade.

View 7 Replies View Related

General :: Bash Scripts - Comparing Multiple Items Or Conditions Using 'if' Statements?

Mar 12, 2011

comparing multiple items or conditions using 'if' statements? I want to do something if one or more conditions is true, for example:

If a = 1 or b = 1.

I've tried:

[Code]...

View 5 Replies View Related

Ubuntu :: 10.04 RC - Is It Identical To The Final Product

Apr 29, 2010

I have RC now, downloaded a week ago. Thinking of re-installing the final one when it's out (very soon!) will there be any difference?

View 9 Replies View Related







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