Thanks! That worked. However is it possible for it to start at 1 instead of 0? Also once I call the function, I'm trying to make it possible to insert text onto the line. Eg if I am up to line '5:' I'm trying to be able to insert text onto that line through using another function.
Cheers
Hey guys, I'm relatively new to Unix Scripting hence the straight forward question.
I'm trying to write a loop that will output a number each time you want it too. All I seem to able to do is create a loop that will output an infinite stream of numbers that doesn't stop. For example I have a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.