How to change space character to return character in vi mode ?

Solution Verified - Updated -

Issue

  • Change all the space in a file to return characted in VI mode ie

     INPUT =  1 2 3 4 5
    
     OUTPUT =          1
                       2
                       3
                       4
                       5
    

ENVIRONMENT

  • Red Hat Enterprise Linux

  • VI editor

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.