Task: Extract Integer Values from wc Command in Bash
Task: Extract Integer Values from wc Command in Bash: a task in Terminal-Lego-15k (Harbor dataset). Create a bash script that iterates through files in a directory and displays each filename along with its line count and word count. The challenge is to extract just the integer values from the wc…
The task
Create a bash script that iterates through files in a directory and displays each filename along with its line count and word count. The challenge is to extract just the integer values from the `wc` command output (which normally includes the filename) and store them in variables for formatted output.
Part of PrimeIntellect/Terminal-Lego-15k.