Linux / UNIX Tech Support Forum
This is a discussion on Shell script to insert a blank character after each character within the Shell scripting forums, part of the Development/Scripting category; My input file with some scientific data numbers is as follows: Code: 1921681234 2254859678 6484684648 I need those numbers in ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Try:
Code:
sed 's/./& /g' input.txt | foo
__________________
Vivek Gite Linux Evangelist |
| The Following User Says Thank You to nixcraft For This Useful Post: | ||
raj (08-07-2009)
| ||
![]() |
| Tags |
| pipe , pipes , sed , sed blank add blank , shell pipes |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script that create a blank file in all sub-directories. | samengr | Shell scripting | 3 | 17-02-2009 08:35 PM |
| Sed Insert Text Between Two Words | LinuxCommandos | Shell scripting | 1 | 06-11-2008 05:16 PM |
| Binary Conversion Of Shell Script (shell script compiler) | chandanperl | Shell scripting | 3 | 29-07-2008 10:22 AM |
| Change character set of a file | Debug | Linux software | 0 | 15-05-2008 05:57 PM |
| insert user using CSV files | gthian | Shell scripting | 1 | 24-09-2007 08:15 PM |