SH中: cat log > /dev/null CSH中: cat /dev/null > log 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70732/showart_724611.html
man bash 它说bash作为login程序启动时依次读 /etc/profile ~/.bash_profile ~/.bash_login ~/.profile 另外bash不作为login程序启动时(也不太理解,是不是指在X中运行terminal的情况?),读取 ~/.bashrc 想不明白为什么要搞这么复杂?所以不知道怎么正确使用它们,根据文件名很难确定啊。
csh中与bash对应的.bash_profile 文件是什么呢? .cshrc .bashrc应该是对应的, 而.bash_profile与csh中哪个对应呢?
每次都要在进入bash后,在根目录下运行. .bash_profile后,才执行。 然而每次打开一个bash窗口,.bashrc可以自动执行 那位也遇到过类似情形? 请指教!
A文件和B文件中的内容比较,把不同的内容输出到一个新文件。可是我写的脚本无法实现,请DX们指点 #!/bin/bash while read LINE do { while read LINE1 do if [$LINE!=$LINE1] then echo "$LINE" >> ./c.txt; fi done < $2 } done < $1