I need to make a for loop but I am relatively new to shell. I want the equivalent of:
For i = 1 to limit
As it would be in Visual basic, where ‘limit’ is a variable set to how long I want the for loop to go on for.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The POSIX way to do this without an external utility such as seq, is using a while loop: