问题 I'm trying to write short script, and the following command: echo "aaa111 bbb111" | xargs -I {} echo {} | sed 's/111/222/g' returns aaa222 bbb222 , which is what I expect. I expected the next command: echo "aaa111 bbb111" | xargs -I {} echo $(echo {} | sed 's/111/222/g') to return the same, but it returns aaa111 bbb111 ! Why is that? UPD: What I'm trying to achieve: I have many files like pic30-coff-gcc , pic30-coff-ag , etc, and I need to make a symlink for each file, like pic30-gcc -> pic30