|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Help with add new line in between each content
Input file: Code:
48458951 49529947 46700865 46207063 52639785 47012578 55872838 49258996 Desired output file: Code:
48458951 49529947 46700865 46207063 52639785 47012578 55872838 49258996 How do add new line in between each content of my input file? Thanks for any advice
|
| Sponsored Links | |
|
|
|
#2
|
||||
|
||||
|
Code:
sed G inputfile Code:
perl -ne '(!eof)?print "$_\n":print' inputfile |
| The Following User Says Thank You to balajesuri For This Useful Post: | ||
perl_beginner (02-07-2012) | ||
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help!!! For changing the content of the line | handsonzhao | Shell Programming and Scripting | 2 | 01-15-2012 10:06 PM |
| Reading several files and summing their content line-by-line | ergy1983 | Shell Programming and Scripting | 7 | 07-14-2010 04:16 AM |
| Search Parameter in first line and replace next line content | rdtrivedi | UNIX for Advanced & Expert Users | 4 | 03-24-2010 11:03 AM |
| How to replace a line content | victorcheung | Shell Programming and Scripting | 13 | 04-21-2008 08:46 PM |
| Get multiple line content between two chars | Feliz | Shell Programming and Scripting | 2 | 04-11-2008 12:29 PM |
|
|