HF RL Explorer

Task: Count Files Matching a Pattern in Bash

Task: Count Files Matching a Pattern in Bash: a task in Terminal-Lego-15k (Harbor dataset). Write a bash command or script that counts the number of files in a directory that match a specific pattern. Specifically, you need to count all files that match the pattern log (files starting with "log").

The task

Write a bash command or script that counts the number of files in a directory that match a specific pattern. Specifically, you need to count all files that match the pattern `log*` (files starting with "log").

Part of PrimeIntellect/Terminal-Lego-15k.