1 | so .. i need sed to do the following : replace every occurence of the following in a file : [text1](text2) with [[text2|text1]], with text1 and text2 being mostly any string and keep the []()| as they are on the pattern. Also, can i do this with awk ? how ? |