Re: [SLE] compare dir



On Tuesday 07 March 2006 10:18, James Hatridge wrote:
Hi all...

I need to compare two dir and delete files in the second dir that have the
same name as in the first. How could I do this?

Option 1:

Open two shells side by side on your desktop and navigate to the respective
directories independently in each one. If the files are too numerous and this
isn't practical, try option 2:


Option 2:

Instead of using typed commands in the shell, run "mc" instead. By default, it
opens in 'split' view... the left and right panes navigate independently of
each, which makes directory structures and content comparisons very easy. If
needed, for permissions, you can "su -" before launching mc. Your mouse will
work, too (at least it does on mine. YMMV.) If you want something prettier,
go to option 3:


Option 3:

From your desktop, you can use two Konqueror windows and navigate to each
directory separately. For root privileges: open your main menu, scroll up to
"System," scroll down the flyout menu to "File Manager" and select "File
Manager - Super User Mode" from the second flyout menu. If that's too much
work, go to option 4:


Option 4 (my GUI favorite):

Install Krusader with YaST or apt-get or smart or whatever your preferred
package manager is (or just go straight to the site and download the rpm:
http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/packages/Utilities/krusader/)
I don't know why Krusader isn't part of the normal distribution, but it's got
some great shortcuts built into it. It does "superuser" mode when needed,
too.

And please be certain you know what you're deleting before you actually start
deleting it! ;-)

regards,

Carl

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • Re: Problems with SetDefaultItem
    ... I've an application where I've got a popup menu. ... Do not compare results to boolean values. ... "When the user opens a submenu by double-clicking, the system sends a command message to ...
    (microsoft.public.vc.mfc)
  • Re: Code to Open New Form Based on Input Form Answer
    ... I have a form named frmAddStudents where the user can input new ... person can navigate to a new record, and again the same as automatic ... I think you should use a sub form here. ... then I would actually place a button on the form and opens up the ...
    (microsoft.public.access.forms)
  • Error number returned different from IDE to EXE
    ... It opens the text file to make sure it is not ... Private Sub btnExit_Click ... Dim strOldLine As String ... 'Input first line of file into strOldLine to compare ...
    (comp.lang.basic.visual.misc)
  • Re: Error number returned different from IDE to EXE
    ... It opens the text file to make sure it is not ... Private Sub btnExit_Click ... Dim strOldLine As String ... 'Input first line of file into strOldLine to compare ...
    (comp.lang.basic.visual.misc)
  • Re: Can I put network tree on the pulldown file menu?
    ... >But when using any of the MS programs, there's no way to navigate ... Documents" tree. ... >I can create links to remote files and folders that total commander ... >a linked remote image and the resident viewer opens it just fine. ...
    (microsoft.public.pocketpc)