Differences between revisions 2 and 3
Revision 2 as of 2007-05-02 22:36:15
Size: 366
Editor: 190-48-43-152
Comment:
Revision 3 as of 2008-11-22 14:08:36
Size: 370
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[Anchor(faq3)]] <<Anchor(faq3)>>
Line 14: Line 14:
For more examples of sed 1-liners, see [http://www.student.northpark.edu/pemente/sed/sed1line.txt sed 1-liners] or [http://sed.sourceforge.net/sedfaq.html the sed FAQ]. For more examples of sed 1-liners, see [[http://www.student.northpark.edu/pemente/sed/sed1line.txt|sed 1-liners]] or [[http://sed.sourceforge.net/sedfaq.html|the sed FAQ]].

How can I insert a blank character after each character?

    sed 's/./& /g'

Example:

    $ echo "testing" | sed 's/./& /g'
    t e s t i n g

For more examples of sed 1-liners, see sed 1-liners or the sed FAQ.

BashFAQ/003 (last edited 2018-01-19 22:00:52 by GreyCat)