how can delete an empty line in a c program in terminal

Asked by madhukar

actually i type 3 line in a c program,after that i knew the second line is unneccesary then i delete the statement of that line but i was not able to delete that empty line.i mean there is a line space between first line and third line.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
strider22 (chris-priestdata) said :
#1

You can't edit in terminal. It is the command line.
I'll guess you used VI or VIM. In that case press esc then DD to delete the line.
If not write back and tell us what editor yo are using.

Can you help with this problem?

Provide an answer of your own, or ask madhukar for more information if necessary.

To post a message you must log in.