您的位置:首页 > 编程语言 > PHP开发

cat - concatenate files and print on the standard output

2017-11-21 15:32 281 查看

cat - concatenate files and print on the standard output

1. cat 文件合并 demo 1

anchor.txt



positive.txt



negative.txt



strong@foreverstrong:~/TensorFlow/group_detection/simulation_data$ ll
total 32
drwxrwxr-x 3 strong strong 4096 11月 21 15:03 ./
drwxrwxr-x 5 strong strong 4096 11月 15 10:07 ../
-rw-rw-r-- 1 strong strong   53 11月 21 15:04 anchor.txt
-rw-rw-r-- 1 strong strong   63 11月 21 15:04 negative.txt
-rw-rw-r-- 1 strong strong   59 11月 21 15:04 positive.txt
strong@foreverstrong:~/TensorFlow/group_detection/simulation_data$
strong@foreverstrong:~/TensorFlow/group_detection/simulation_data$ cat anchor.txt positive.txt negative.txt > anp_group.txt
strong@foreverstrong:~/TensorFlow/group_detection/simulation_data$

anp_group.txt



2. cat 文件合并 demo 2

anchor.txt



positive.txt



negative.txt



strong@foreverstrong:~/TensorFlow/group_detection/simulation_data$ cat anchor.txt positive.txt negative.txt > apn_group.txt

anp_group.txt



        注意对比 cat 文件合并 demo1 和 demo 2.

3.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐