The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Truncating the last character ithirak17 UNIX for Dummies Questions & Answers 1 03-07-2008 11:18 AM
Truncating a variable whdr02 Shell Programming and Scripting 3 02-12-2008 10:28 AM
to print number one less than actual number cdfd123 Shell Programming and Scripting 4 09-06-2007 07:56 AM
truncating leading zeros of a column in a file nvuradi Shell Programming and Scripting 7 08-30-2007 07:04 AM
`ps` command truncating text keelba UNIX for Dummies Questions & Answers 9 09-28-2002 01:28 PM

 
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 04-10-2007
michaeltravisuk michaeltravisuk is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 9
Truncating a number using sed/awk

Hi all,

I'm trying to truncate a number like the following:

0001060407013900501048239559900600504083525826350002050354795057

I would like to create an output which puts carriage returns every so many characters, giving an output such as:

0001
060407
0139
0
05
010482395599
0060
050408
35258
26
350002050354795057

Is this possible using sed or awk or something?

Many thanks
 

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 12:16 AM.


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