← 返回 apple 的题目列表Write a Bash Script to Process Text Files
类型:online_judge
Write a Bash script that reads all text files in a directory and counts the number of lines for each file. The script should output the name of each file along with its line count. Provide detailed requirements, including handling files in subdirectories and files with empty lines or special characters.
Example
Input
test_dir