Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2007-05-02 22:36:15
Size: 366
Editor: 190-48-43-152
Comment:
Revision 4 as of 2009-12-29 17:16:14
Size: 393
Editor: MatthiasPopp
Comment:
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]].

----
CategoryShell

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.


CategoryShell

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