Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Sorry, I haven't been able to hobble this together... Post 302924183 by Don Cragun on Thursday 6th of November 2014 07:32:38 PM
Old 11-06-2014
This could be done with awk, but you don't need that much power for this. A simple editor (e.g., ed, ex, sed, or vi is all you need for this. Here is an example using sed:
Code:
sed 's/../&,00,/g; s/,;/;/' input

After massaging your sample input and output to get rid of spaces in the middle of your lines (since you didn't use CODE tags), I also found that this code does not produce the sample output you said you want; you're missing a ,00 close to the end of each line and a ,00, in the middle of the line.
This User Gave Thanks to Don Cragun For This Post:
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

haven`t the right of root?

I install solaris 8. I want to use netconfig command, but it dispear "you haven`t the right",why? Is there somebody can help me? (3 Replies)
Discussion started by: yycokr
3 Replies

2. Shell Programming and Scripting

I thought I asked the question before but I haven't sorry

:D could any one answer my previous question... just looked through logg and found no such question that I had asked.. please any input would help \.. :confused: (2 Replies)
Discussion started by: moxxx68
2 Replies
All times are GMT -4. The time now is 12:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy