mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00

Deprecates the existing `stdlib-candidate` directories in `nu_scripts` since `std-rfc` has now transitioned to the main repo. Updates readme and renamed directories.
13 lines
278 B
Text
13 lines
278 B
Text
use ./col-indices.nu *
|
|
|
|
# Reject a range of columns by their indices
|
|
#
|
|
# Example:
|
|
#
|
|
# ls | reject column-ranges 0 4 5 | first 3
|
|
export def "reject column-ranges" [
|
|
...ranges
|
|
] {
|
|
let column_selector = ($in | col-indices ...$ranges)
|
|
$in | reject ...$column_selector
|
|
}
|