Review the note-list script before running it $1 is the first argument and $# counts arguments. The guards require one explicit directory path; they do not prove ownership. find selects regular .txt names and sort orders their paths. This is a read-only listing of the supplied controlled tree, not a deletion procedure. The output below is retained from an earlier Bash 5.2.21 exercise. Scope: one owned supplied tree, no network, no elevated privilege. Inspect script and all inputs before running. Run with Bash, not sh. owned-tree/notes/alpha.txt = first note (newline) owned-tree/notes/meeting note.txt = second note (newline) owned-tree/notes/archive.log = log only (newline) bash list-notes.sh ./owned-tree Observed stdout with Bash 5.2.21, ordered by C locale: ./owned-tree/notes/alpha.txt ./owned-tree/notes/meeting note.txt Running twice on unchanged input should print the same lines. This format is for this controlled text tree, not filenames with newlines. The script lists recursively, including dot-named .txt files if supplied. It does not follow encountered symlink directories by find's default. Question script's only command: find "$1" -type f -name '*.txt' Does this command list or delete files? Enter list or delete.