上一页 1 ··· 202 203 204 205 206 207 208 209 210 ··· 341 下一页
摘要: 关机命令AIXshutdown nowSolarisinit 5Redhatshutdown nowCentosshutdown now 阅读全文
posted @ 2014-08-15 11:32 emanlee 阅读(962) 评论(0) 推荐(0)
摘要: 1.源程序的编译在Linux下面,如果要编译一个C语言源程序,我们要使用GNU的gcc编译器。 下面我们以一个实例来说明如何使用gcc编译器。假设我们有下面一个非常简单的源程序(hello.c):int main(int argc,char **argv){printf("Hello Linux\n... 阅读全文
posted @ 2014-08-14 18:23 emanlee 阅读(482) 评论(0) 推荐(0)
摘要: 分别用sed awk perl grep 实现: 1 sed '/^$/d' input.txt > output.txt #output file: output.txt 2 sed -i '/^$/d' input.txt #output file: input.txt 3 awk 'NF > 阅读全文
posted @ 2014-08-02 10:42 emanlee 阅读(13508) 评论(0) 推荐(2)
摘要: num_lines = sum(1 for line in open(input_file_name)) 阅读全文
posted @ 2014-08-02 10:34 emanlee 阅读(3918) 评论(0) 推荐(0)
摘要: # cat > check_process_is_end.shwhile truedo sleep 30 # seconds res=`ps -ef | grep RNAhybrid` count=`grep -o "RNAhybrid" process_memory.shwhile truedo... 阅读全文
posted @ 2014-07-28 11:09 emanlee 阅读(463) 评论(0) 推荐(0)
摘要: #umount /mnt/fourtumount: /mnt/fourt: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) ... 阅读全文
posted @ 2014-07-28 10:05 emanlee 阅读(5648) 评论(0) 推荐(0)
摘要: 1.open 打开文件使用open打开文件后一定要记得调用文件对象的close()方法。比如可以用try/finally语句来确保最后能关闭文件。 file_object = open('D:\test.txt') try: all_the_text = file_object.read( ) fi 阅读全文
posted @ 2014-07-27 18:22 emanlee 阅读(480) 评论(0) 推荐(0)
摘要: #include #include char* asctime2(const struct tm *timeptr){ static const char wday_name[][4] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ... 阅读全文
posted @ 2014-07-25 11:39 emanlee 阅读(5863) 评论(0) 推荐(0)
摘要: PyDev for Eclipse, 经过测试,一般在线安装会失败(不能访问某些网站所致)以下为离线安装步骤1 下载 PyDev 2.8.2, 链接:http://sourceforge.net/projects/pydev/files/2 解压 PyDev 2.8.2 文件到 ...\MyEcli... 阅读全文
posted @ 2014-07-24 16:13 emanlee 阅读(2960) 评论(0) 推荐(0)
摘要: f <- function(start_time) { start_time <- as.POSIXct(start_time) dt <- difftime(Sys.time(), start_time, units="secs") # Since you only want the H:M... 阅读全文
posted @ 2014-07-22 18:13 emanlee 阅读(9280) 评论(0) 推荐(0)
上一页 1 ··· 202 203 204 205 206 207 208 209 210 ··· 341 下一页