Hi..
I have the below result in my one text file.
|-------------------|-
|email |
|-------------------|--
| |
| |
| |
| |
| abc@yahoo.com |
| email |
| |
| |
| |
| |
| abc@gmail.com |
| ajan@yahoo.com |
| ha@gmail.com |
| abcd@rediff.com |
| web@wemastre.co m |
----------------------------------
is the table..that is in one text file..
I just want to have all the email address..
and it gives me
| abc @yahoo.com|
| bbb@gmail.com|
something like this..
m missing something to avoid that extra |..
is working for both and gives final result.I want to combine both..
Thanks
I have the below result in my one text file.
|-------------------|-
|email |
|-------------------|--
| |
| |
| |
| |
| abc@yahoo.com |
| email |
| |
| |
| |
| |
| abc@gmail.com |
| ajan@yahoo.com |
| ha@gmail.com |
| abcd@rediff.com |
| web@wemastre.co m |
----------------------------------
is the table..that is in one text file..
I just want to have all the email address..
Code:
sed -n "/com/p" result.txt > result.csv
| abc @yahoo.com|
| bbb@gmail.com|
something like this..
m missing something to avoid that extra |..
Code:
sed -e 's/|/ /g' result.csv > finalmail.txt
Thanks
Comment