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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content