I have a function in bash say parse which takes one argument and function name is f. My file to be processed is somewhat like
a@b@c@
a@d@e@g@
m@n@
t@
I want to give the output as
a@f(b)@f(c)@
a@f(d)@f(e)@f(g)@
m@f(n)@
t@
That is apply function f to all except the first. Any clues so how can I do this?