app开发者平台在数字化时代的重要性与发展趋势解析
624
2022-09-25
Unix command coloring
1. System.out.println("\u001b[1;31mhahahahhaha\u001b[1;37m");
hahahahhaha
\u001b[1;31m
means to start with red.
\u001b[1;37m
means to start with default color, that is to say, close the coloring.
2. alias cvsDirty="cvs status | grep File | grep Modified | sed 's#\(File:.*Status:.*\)#\x1b[1;31m\1\x1b[1;37m#'"
Create a alias to highlight the modified file.
File: L360-CEF-client-test.jpr Status: Locally ModifiedFile: L360CEF.properties Status: Locally ModifiedFile: L360-CEF-server.jpr Status: Locally ModifiedFile: L360-CEF-server-test.jpr Status: Locally Modified
sed sytax, sed 's#SRC#DEST#" , replace all the matches SRC with DEST.
\x1b[1;31m
means to start with red.
\x1b[1;37m
means to start with default color, that is to say, close the coloring.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~