Skip to content

Add beginner-friendly example showing how to loop through files#25

Open
JesusAlvarado48 wants to merge 1 commit intomicrosoft:mainfrom
JesusAlvarado48:add-file-loop-example
Open

Add beginner-friendly example showing how to loop through files#25
JesusAlvarado48 wants to merge 1 commit intomicrosoft:mainfrom
JesusAlvarado48:add-file-loop-example

Conversation

@JesusAlvarado48
Copy link

This contribution adds a new example script named for_loop_files to the what-are-loops section.
The script demonstrates how to use a for loop to iterate over .txt files in the current directory.

This example provides a practical, real-world use case for beginners learning Bash loops.
It complements the existing loop examples by showing how loops interact with file patterns,
which is a common task in shell scripting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant