need help here


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting need help here
# 1  
Old 12-24-2008
need help here

Hello guys,
I am new to the korn shell scripting. Can someone let me know what is the best way to go to a particular error line when your script is way too big.
Here, it says: "syntax error at line 334" and my script is 591 lines long. What is the best way to reach to that line to debug the error?? Something like blinking the cursor at that particular error line. or may be smthing different..

please...
thanks
# 2  
Old 12-24-2008
1) open with vi, "vi myscript.ksh"
2) type ":334" without quotes, this should take you to that line
# 3  
Old 12-24-2008
Or:

Code:
vi +334 scriptname

Regards
# 4  
Old 12-24-2008
thanks mucho guys....
# 5  
Old 12-24-2008
In vi 334G will also work
Padow
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question