Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
怎么可能改变这个:
"dir1/dir2/../file1.ext">< "dir1/dir2/../file2.ext"><
进入这个:
"dir1/dir2/../file.ext">file1.ext< "dir1/dir2/../file.ext">file2.ext<
与sed或awk?
sed
awk
像这样的东西应该工作:
sed 's_/\([^/>]\+\)"><_/\1">\1<_g' file