LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2024, 06:39 PM   #1
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 182

Rep: Reputation: Disabled
Using rmlint, move duplicates to separate drive, retaining directory structure


I've been using rmlint to move duplicates to a separate volume, employing the user-defined-command feature. However, I'd also like to retain the directory structure, but I don't see any way to do that. I've used this so far
Code:
rmlint -c sh:cmd='mv $1 /Volumes/2p5-750-2/'$1 .
suggestions much appreciated. Thanks.
 
Old 05-18-2024, 09:49 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,832

Rep: Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219
Duplicate of
https://www.linuxquestions.org/quest...hem-4175731557
 
  


Reply

Tags
duplicate files



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RMLINT -- move files instead of deleting them ericlindellnyc Linux - Newbie 4 05-18-2024 09:24 AM
rmlint or any deduplication tools options - need to operate at directory level uyjjhak Linux - Software 1 03-29-2020 06:12 AM
Look for duplicates in folder tree A and folder tree B, then delete the duplicates only from A. grumpyskeptic Linux - Software 7 10-27-2018 10:23 PM
rmlint-2.0.0 - a lint/duplicate finder [rewrite of old rmlint, testers wanted] sahib_bommelig Linux - General 13 10-25-2015 09:55 AM
Chemistry problem: Identify duplicates and non-duplicates within TWO sdf files robertselwyne Programming 5 12-09-2011 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration