this is not as simple and straight forward as i had hoped. i am going to have to write some Python code for fdupes. many of my music file names cannot be passed to commands by shell without quoting (because of characters like parenthesis in the name) and fdupes offers no means to separately quote each name.
so i'll try this:
nice ... this way worked.
so i'll try this:
# -*- coding: utf-8 -*- from __future__ import print_function from subprocess import call from sys import stderr, stdin # do not use the -1 option on fdupes. flist = [] for line in stdin: for c in '\n\r\n\r': if line[-1:] == c: line = line[:-1] l = len(line) if l < 1: if len(flist) < 2: print('flist =',repr(flist),file=stderr) raise Exception('fewer than 2 names in a group') a = flist[0] call(['ls','-dil',a]) for n in flist[1:]: call(['ln','-fv',a,n]) call(['ls','-dil',n]) flist = [] else: flist.append(line)piping the output of fdupes to it.
nice ... this way worked.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.