Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

this is in a file called numbers.txt in the current working directory. Starting from a UNIX prompt, give the sequence of UNIX/vi commands, that will "fix" the list of numbers in as few keystrokes as possible.

one
nine
eight
seven
six
delete this line
two
three
four
five
share|improve this question

closed as off topic by Uri Herrera, dobey, Bruno Pereira Nov 19 '12 at 20:37

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
Welcome to Ask Ubuntu! Please try to clarify what you're looking for. What do you mean by "fix"? Also, what do you need this for? –  user98085 Nov 19 '12 at 20:36

1 Answer 1

vi file
:1,$ d
ione
nine
eight
seven
six
two
three
four
five
:wq
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.