cli.fail

Practice this fail.

The shell already opened your mail.

Bash / GNU find · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

In Bash, app.log and server.log are in the current directory, and more logs exist in subdirectories. You are using GNU find.

The shell already opened your mail.

$ find . -name *.log

The shell expanded *.log before find saw it.

How do you recursively find regular files whose names end in .log?

3 attempts remaining

Read why this fix works

The shell already opened your mail.

find . -type f -name '*.log'

Quote '*.log' so Bash passes the pattern unchanged to find. GNU find can then apply it throughout the directory tree. -type f restricts matches to regular files, avoiding directories whose names happen to end in .log.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result