我在树莓派的linux上想写一个shell文件,内容就是以下2行,就想打包备份而已
tar -czvf cpph618.tar.gz ./cpp_h618
tar -czvf libgpio.tar.gz /usr/lib/walnutpi/gpioc/libgpio
但是实际运行shell文件,出错了。但是把以上2行单独拿出来运行,又可以良好运行。是在想不明白是为啥。哪个大神教我
root@WalnutPi:~/projects# ./backup.sh
tar: ./cpp_h618\r: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tar: Removing leading `/' from member names
tar: /usr/lib/walnutpi/gpioc/libgpio\r: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors