1
Fork 0
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:
RGBCube 2025-06-30 17:35:20 +03:00
parent 6be749ff9f
commit 6bbd051629
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -23,7 +23,7 @@ let linked = ls ...(glob --no-dir $"($source)/**/*")
| group-by hash | values
$by_identity
| filter { ($in | length) > 1 }
| where { ($in | length) > 1 }
| each {|entries|
let separator = $"(ansi reset)\n- (ansi red)"
print $"found identical files: \n- (ansi red)($entries | get name | str join $separator)(ansi reset)"