Hi all,
Sed is the one which always trobules me
here is my input :
*** it industry need to be evolved *** in the world and hope so *** to be dream
the output i am expecting is :
*** it industry need to be evolved
*** in the world and hope so
*** to be dream
here is what i have tried
TESTING>sed '/ \*\*\* / i\
>
> ' ravi_test.txt
here one line is inserted before the first "***" ( ofcourse it does not follwed spaces as specified in the condition.
One more doubt : when using "tr" to replace the "\n" with " " , further i can't use this output in a filter to sed as sed expects "\n" at the end to consider it as a line ?.. any clue on how to use "tr" in this case( have to retain the last "\n")
thanks and regards
Panyam