mirror of
https://github.com/RGBCube/random-scripts
synced 2025-07-05 18:37:35 +00:00
nu: hop off filter
This commit is contained in:
parent
6be749ff9f
commit
6bbd051629
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ let linked = ls ...(glob --no-dir $"($source)/**/*")
|
||||||
| group-by hash | values
|
| group-by hash | values
|
||||||
|
|
||||||
$by_identity
|
$by_identity
|
||||||
| filter { ($in | length) > 1 }
|
| where { ($in | length) > 1 }
|
||||||
| each {|entries|
|
| each {|entries|
|
||||||
let separator = $"(ansi reset)\n- (ansi red)"
|
let separator = $"(ansi reset)\n- (ansi red)"
|
||||||
print $"found identical files: \n- (ansi red)($entries | get name | str join $separator)(ansi reset)"
|
print $"found identical files: \n- (ansi red)($entries | get name | str join $separator)(ansi reset)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue