|
Linux Text Manipulation Question
Hello,
I have a file filled with the below. Below are the first two lines:
male_0103.bmp male_0314.bmp scene_0356.bmp scene_0517.bmp scene_0418.bmp
male_0016.bmp scene_0396.bmp male_0064.bmp scene_0568.bmp left.bmp
etc.
I want to put a comma after each portion of text. For example:
male_0103.bmp, male_0314.bmp, scene_0356.bmp, scene_0517.bmp, scene_0418.bmp,
male_0016.bmp, scene_0396.bmp, male_0064.bmp, scene_0568.bmp, left.bmp,
Is there a Linux command that would allow me to do this to the entire file? Maybe a command that would place a comma after each 'p'? (the only 'p' in the entire file is in .bmp).
Thanks!
|