Sign up with Facebook Sign up with Twitter. I don't have a Facebook or a Twitter account. Research and publish the best content. Try Business.
|Published (Last):||20 January 2016|
|PDF File Size:||8.99 Mb|
|ePub File Size:||1.50 Mb|
|Price:||Free* [*Free Regsitration Required]|
The above script fails at line 4 cyberciti. How can I take the line number, and re-run the script starting from that line, after making the required corrections, skipping already executed commands? When you think you often have to do something like this, you can use a special variable.
And make an optional commandline parameter default start at the beginning that tells you where to start. The unstructured version would look like:. Further improvements might include logical names and some special flow control that can be altered within a phase. Credit goes to Aaron Digulla for his answer here. EDIT: Thanks to l0b0 for preventing my cat from taking over the world!
This is the final script i needed which when we first run sh test. Learn more. How to start a shell script from a specific line?
Ask Question. Asked 5 years, 1 month ago. Active 3 years, 7 months ago. Viewed 3k times. Benjamin W. Active Oldest Votes. The unstructured version would look like:! EDIT: Improvement using case-construction!
Walter A Walter A Bardi Harborow Bardi Harborow 1, 1 1 gold badge 25 25 silver badges 40 40 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
Subscribe to RSS