cat使用时碰到的一个坑

[root@gr ~]# cat<<EOF>/script/tar_hours.sh> #!/bin/bash> tar cvf /tmp/services-`date +%F_%H`.tar /etc/services> EOF[root@gr ~]# cat /script/tar_hours.
posted @ 2018-07-09 16:48  viewshadow  阅读(180)  评论(0编辑  收藏  举报