linux >>what does it mean

(*-*)浩
Release: 2019-11-04 09:50:50
Original
5190 people have browsed it

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"
Copy after login

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

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

得到的结果是:

ARCH   = arm
CPU    = s5pc11x
BOARD  = x210
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!