in bash what is the best way to copy a file, and if it is a symlink also copy the linked-to file?

后端 未结 0 1208
花落未央
花落未央 2020-12-02 15:20

So I know that I can use if [[ -L "/home/user/link" ]] ; then ... to check if my file is a symlink and then followed by something like cp $(real

相关标签:
回答
  • 消灭零回复
提交回复
热议问题