You're replying to a comment by vinay.

vinay Permalink
May 14, 2014, 12:43

Hi Peter,

This is a really really nice blog.

If possible, can you help me with the following scenario:

I want to append a character say a # to the previous line if the current line starts with say JU.
Example :
this is the previous line1
JU this is the current line2
this is previous line2
this is the current line2

The output should be:
#this is the previous line1
JU this is the current line2
this is previous line2
this is the current line2

Can you please help.

Thanks in advance.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "apple_95": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.