Published: 11 Jun 2025 › Updated: 11 Jun 2025

Listing files containing FOO ordered by modification date in #bash and #nushell. ...
... Could the latter be shorter?
grep -l FOO out* | xargs ls -lt
ls out* | filter { |file|
(grep -q "FOO" $file.name | complete | get exit_code) == 0
} | sort-by modified -r
Leave Listing files containing FOO ordered by modification date in #bash and #nushell. ... to:
Read more #bash posts
Best Posts From Serpent7776
We have not curated any of serpent7776's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.