Transforming a CSV Line to many lines based on comma
By mantikore
Here is the command to transform a line like:
<>
a,b,c,d,e
Command cat cdr_wap.log | tr “,” “n” | cat -n
It will be looks like:
1 a
2 b
3 c
4 d
5 e
Cheers.
Tags: Linux, Shell, unix
This entry was posted on September 15, 2008 at 5:43 am and is filed under Linux-Unix, Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.