diff options
| author | grothedev <grothedev@gmail.com> | 2024-06-17 13:06:12 -0500 |
|---|---|---|
| committer | grothedev <grothedev@gmail.com> | 2024-06-17 13:43:05 -0500 |
| commit | 5a6bec76248cdc6400cc6c7fdf5fcebf84ff57c4 (patch) | |
| tree | 6bb11c1606e895706e2fc4d212170d272129d092 /mostrecentrecursively.sh | |
| parent | fecda2be6e3238a35b9a0569b9e12c9c84faabf3 (diff) | |
a script ive been using to get the top most recently modified files in a folder recursively. i have another version of this script with the option for file exclusion and outputs how long it took to run. also a script i used to kill vscode-server processes that were destroying my laptop when using vscode ssh from desktop
Diffstat (limited to 'mostrecentrecursively.sh')
| -rwxr-xr-x | mostrecentrecursively.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mostrecentrecursively.sh b/mostrecentrecursively.sh new file mode 100755 index 0000000..cc2b8bf --- /dev/null +++ b/mostrecentrecursively.sh @@ -0,0 +1,2 @@ +#!/bin/bash +find $1 -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head |
