Mr.Pytagoras
October 21st, 2011, 01:50 PM
hi
an example of my problem is the best way to understand what i can't figure out :)
I have a string for example str
str="something1 next_colum something2"
And I want to take the "next_colum" substring to be my delimiter and swap the "something1" with the "something2" and after that replace the "next_colum" with for example ">>>" characters
I was thinking maybe awk would do it however so far I haven't been able to achive anything. So I am asking you for your help
Thanks
an example of my problem is the best way to understand what i can't figure out :)
I have a string for example str
str="something1 next_colum something2"
And I want to take the "next_colum" substring to be my delimiter and swap the "something1" with the "something2" and after that replace the "next_colum" with for example ">>>" characters
I was thinking maybe awk would do it however so far I haven't been able to achive anything. So I am asking you for your help
Thanks