print 函数的打印格式: ##no quote print out > x <- letters[1:5] > print(x,quote=F,);print(x,quote=T) [1] a b c d e [1] "a" "b" "c" "d" "e" ##print without number of vector and quote > cat(x) a b c d e
cat:concatenate files and print on the standard output合并文件并输出 主要用法 1.cat f1.txt,查看f1.txt文件的内容. 2.cat -n f1.txt,查看f1.txt文件的内容,并且由1开始对所有输出行进行编号. 3.cat -b f1.txt,查看f1.txt文件的内容,用法与-n相似,只不过对于空白行不编号. 4.cat -s f1.txt,当遇到有连续两行或两行以上的空白行,就代换为一行的空白行. 5.cat -e f
cat VS tac cat是查看文本文件的内容,tac是cat反过来,反向查看文件 $cat 1.txt ls: cannot access ee: No such file or directory 1line 2line 3line 4line $tac 1.txt 4line 3line 2line 1line ls: cannot access ee: No such file or directory more 查看,扩展翻页,回车下一行,空格下一页,q退出 $man ls | mo
转自:http://blog.csdn.net/apache0554/article/details/45508631 cat <<EOF和cat <<-EOF两个都是获取stdin,并在EOF处结束stdin,输出stdout. 但是<<-是什么意思呢? 先来看man中的说明: If the redirection operator is <<-, then all leading tab characters are stripped from inpu