mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +00:00
parent
977ffa6c02
commit
a9b829115f
1 changed files with 4 additions and 4 deletions
|
@ -63,9 +63,9 @@ export def with-stem [stem: string] { with-field stem $stem }
|
||||||
#
|
#
|
||||||
# - replace parent path with `/root/` for all filenames in list
|
# - replace parent path with `/root/` for all filenames in list
|
||||||
# > ["/home/rose/meow", "/home/fdncred/"] | path with-parent "/root/"
|
# > ["/home/rose/meow", "/home/fdncred/"] | path with-parent "/root/"
|
||||||
# ╭───┬────────────╮
|
# ╭───┬───────────────╮
|
||||||
# │ 0 │ /root/meow │
|
# │ 0 │ /root/meow │
|
||||||
# │ 1 │ /root/spam │
|
# │ 1 │ /root/fdncred │
|
||||||
# ╰───┴────────────╯
|
# ╰───┴───────────────╯
|
||||||
# ```
|
# ```
|
||||||
export def with-parent [parent: string] { with-field parent $parent }
|
export def with-parent [parent: string] { with-field parent $parent }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue