sed or awk, copy aside to create anchortext -


how possible transform this:

"dir1/dir2/../file1.ext">< "dir1/dir2/../file2.ext">< 

into this:

"dir1/dir2/../file.ext">file1.ext< "dir1/dir2/../file.ext">file2.ext< 

with sed or awk?

something should work:

sed 's_/\([^/>]\+\)"><_/\1">\1<_g' file 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -