Take a look at prefixAndTail

http://doc.akka.io/docs/akka/2.4.4/scala/stream/stages-overview.html#prefixAndTail

On Thu, Apr 14, 2016 at 7:42 AM, Guofeng Zhang <guofen...@gmail.com> wrote:

> Hi,
>
> I have a csv file like the following:
> ID,Product name,Price
> 1111,Sleeve,57.97
> 2222,Jacket,83.44
> ....
>
> I want to transform it to:
> ID,Product name,Price
> 1111,Sleeve,579.7
> 2222,Jacket,834.4
>
> That is, the head line (the first line) is not changed, but the prices in
> other lines are multiplied by 10. The result is then stored to another file.
>
> Because there is the head line that is different to the other lines, so I
> do not know how to use akka-stream to transform it.
>
> Your help is appreciated.
>
> Thanks.
>
> Guofeng
>
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to