The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Separate string arghya_owen Shell Programming and Scripting 3 05-14-2008 04:35 AM
remove space characters melanie_pfefer Shell Programming and Scripting 1 03-11-2008 01:45 PM
wc of characters in a file ignoring white space sachin.gangadha UNIX for Dummies Questions & Answers 1 12-15-2007 06:13 PM
separate information with a space character remid1985 UNIX for Dummies Questions & Answers 2 10-31-2006 06:36 AM
separate out the column ust Shell Programming and Scripting 6 12-29-2005 07:11 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-22-2007
cdfd123 cdfd123 is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 112
how to separate every 10 characters then space then another 10 charactes

suppose u have a file
P2122 AAJJSKKSKSLSKSKMSKMS
P2123 AASSJMWJNSJNWHNSKSJ
P2126 AHJMKNSAJNSKAKMOKALM
P3533 KKKSJMAKKLLMLMSLMSPM

P2122 JKKSKKMKKSKKKS--------------NSNJ
P2123 NSJN---------MSKMKMKKSLLNSLL
P2126 JNJSJNWKMSK-------------SKKSMK
P3533 JSNSNPWLLL-SKK----SKKKSKKS

so the output shud be
P2122 AAJJSKKSKS LSKSKMSKMS
P2123 AASSJMWJN JNWHNSKSJM
P2126 AHJMKNSAJN SKAKMOKALM
P3533 KKKSJMAKKL LMLMSLMSPM

P2122 JKKSKKMKKS SLSKSKMSKM
P2123 NSJN---------MS KMKMKKSLLN SLL
P2126 JNJSJNWKMS K-------------SKK SMK
P3533 JSNSNPWLL- SKK------SKKK SKKS
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0