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?
maybe this is what you want?
e.g. you have a script called sqr.sh:
now you want to apply the function above on your input: