Re: [Linux-users] xargs and awkery

2016-03-09 Thread steve
On 03/08/2016 05:57 PM, Criggie wrote: I'm sure this can be optimised, but how's this for some dirty hackery. server.dc home $ `cat _fdupes-2016-03-08.txt | xargs -n 3 | awk ' { print "rm -f " $2, $3 " ; ln " $1 , $2 " ; ln " $1, $3 } '` Clue 1 the input file contains the output of

Re: [Linux-users] xargs and awkery

2016-03-08 Thread Volker Kuhlmann
On Tue 08 Mar 2016 17:57:10 NZDT +1300, Criggie wrote: > I'm sure this can be optimised, but how's this for some dirty hackery. Dirty, yes, clever, not so sure. I don't think I'd be game to run that on one of my filesystems. Checking for empty lines would be essential, and gawk is much better at