We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I see two issues with your for loops section.
Instead of this:
for name [in list] do statements that can use $name done
How about doing it this way:
for name in one two do echo $name done
Example output:
one two
Anther for loop example:
more list.txt one two
for name in $(more list.txt) do echo $name done
Currently a user of the can't just cut and past the code into there terminal to run. This way they can do that to test and learn how it works.
Also maybe add a read line section to the while loop section. Example:
more list.txt | while read line do echo "$line" done
This kind of loop is good for varibles with spaces in.
I can do a pull request if you want and do it for you, just let me know.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I see two issues with your for loops section.
Instead of this:
How about doing it this way:
Example output:
Anther for loop example:
Example output:
Currently a user of the can't just cut and past the code into there terminal to run. This way they can do that to test and learn how it works.
Also maybe add a read line section to the while loop section.
Example:
This kind of loop is good for varibles with spaces in.
I can do a pull request if you want and do it for you, just let me know.
The text was updated successfully, but these errors were encountered: