Home  >  Article  >  Operation and Maintenance  >  linux >>what does it mean

linux >>what does it mean

(*-*)浩
(*-*)浩Original
2019-11-04 09:50:505245browse

linux >>what does it mean

>>   (推荐学习:linux运维

这个是将输出内容追加到目标文件中。如果文件不存在,就创建文件;如果文件存在,则将新的内容追加到那个文件的末尾,该文件中的原有内容不受影响

使用>> 会出现什么情况,发现元文本追加了一行。

[root@oracle1 test]# cat >> test.txt
echo "aaa"    
^C
[root@oracle1 test]# ^C
[root@oracle1 test]# cat test.txt 
aaa
echo "aaa"

eg:来自于S5PV210--uboot--mkconfig--123行

echo "ARCH   = $2" >  config.mk
echo "CPU    = $3" >> config.mk
echo "BOARD  = $4" >> config.mk

得到的结果是:

ARCH   = arm
CPU    = s5pc11x
BOARD  = x210

The above is the detailed content of linux >>what does it mean. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:linux < >differenceNext article:linux < >difference