2 ms·
nushell + 1. After ~20 years of bash+zsh, I'm translating all my scripts to nu. Yesterday I noticed I still don't know how to write ls | where modified < ((
by crabsand 5mo ago
nushell + 1. After ~20 years of bash+zsh, I'm translating all my scripts to nu.
Yesterday I noticed I still don't know how to write
ls | where modified < ((date now) - 3wk) | each { |fn| rm $fn.name }
in zsh after all years.
- psychoslave 5mo agoI use fish as daily shell, and for this kind of script I would rather jump to ruby. But it looks rather readable.
- i_think_so 5mo agoWhoa. You people freak me out with your fancy new toys.
- metaltyphoon 5mo agofind . -type f -mtime +21 -delete Or if you have fd fd -t f --changed-before 3w -X rm
- deleted 5mo ago[deleted]