Hi,
 
Thank you for your help, I think that I have a big choice in proposed solutions.
 
Thanks again
 
Mehdi

Ariz Jacinto <[EMAIL PROTECTED]> a écrit :
hi,

if you simply want to stick with the requirements (bash), you might
find this useful:


#!/bin/bash
filename="input_file.txt"

exec < $filename
while read line
do
echo "${line:0:10};${line:10:10};${line:20:10};${line:30:10};${line:40:10};${line:50:10};"
done



Note:
- just add "${line:column_number:10};" to the code in order to fit
with your input file.

- i do accept paypal (just kiddin)....





On 7/5/06, Mehdi Aboulkassim <[EMAIL PROTECTED]>wrote:
>
>
> Hi Ariz,
>
> Yes it has to be written in bash, but if impossible?! I can use onother one.
>
> Here is a sample of my flat file input and desired output in the attachment file.
> I''ve made just 6 columns in it, but in reality I have over than 20 columns.
>
> I hope that it it's explicit anough.
>
> Thanks in advance.
>
>
> Ariz Jacinto <[EMAIL PROTECTED]>a écrit :
>
> hi,
>
> it would be better if you're going to post your sample input file
> and your desired output. does the script have to be in bash?
>
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph


Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to