Skip to content

Instantly share code, notes, and snippets.

@paul-d-ray
Created June 24, 2025 02:37
Show Gist options
  • Save paul-d-ray/d2ac1fc6eebbac55cc44f126d002e202 to your computer and use it in GitHub Desktop.
Save paul-d-ray/d2ac1fc6eebbac55cc44f126d002e202 to your computer and use it in GitHub Desktop.
Nushell Touch Example

Nushell Touch Example

This uses nuls (a custom wrapper of Nushell's ls) to get the fullname and pass this to touch inside of a closue.

nuls -f  d:/drivers/x670e_Taichi/Chipset/ 
  | sort-by modified | 
  last 1 | 
  get fullname  | 
  each {|file| touch -m -t 2025-06-13T06:18:00-04:00 $file}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment