码迷,mamicode.com
首页 >  
搜索关键字:shell time expr wait    ( 86807个结果)
rand(),srand()区别
先从随机数的原理谈起.计算机的随机数都是由伪随机数,即是由小M多项式序列生成.产生每个小序列都有一个初始值,即随机种子.srand()产生随机种子.rand()产生随机数要保证计算机产生不相同的随机数,应保证它们的随机种子是不一样的.srand( (unsigned)time( NULL ) );就...
分类:其他好文   时间:2014-06-18 11:09:19    阅读次数:196
shell--传入参数的处理
参数处理-Shell传入参数的处理1. $# 传递到脚本的参数个数2. $* 以一个单字符串显示所有向脚本传递的参数。与位置变量不同,此选项参数可超过9个3. $$ 脚本运行的当前进程ID号4. $! 后台运行的最后一个进程的进程ID号5. $@ 与$#相同,但是使用时加引号,并在引号中返回每个参数...
分类:其他好文   时间:2014-06-18 09:16:02    阅读次数:231
java执行linux shell命令,并拿到返回值
1 package com.suning.spc.util; 2 3 import java.io.IOException; 4 import java.io.InputStream; 5 import java.nio.charset.Charset; 6 7 import o...
分类:编程语言   时间:2014-06-18 08:47:32    阅读次数:476
PatentTips - Supporting heterogeneous virtualization
BACKGROUNDA virtual machine (VM) architecture logically partitions a physical machine, such that the underlying hardware of the machine is time-shared...
分类:其他好文   时间:2014-06-17 23:49:03    阅读次数:350
PKU-2104-K-th Number
K-th Number Time Limit: 20000MS   Memory Limit: 65536K Total Submissions: 36045   Accepted: 11522 Case Time Limit: 2000MS Description You are working for Macrohard com...
分类:其他好文   时间:2014-06-17 22:17:07    阅读次数:410
Reverse Nodes in k-Group
题目 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k then left-out nodes in the end should rem...
分类:其他好文   时间:2014-06-17 22:15:52    阅读次数:299
UML的基础元件之行为元件
Behavioral things are the dynamic parts of UML models. These are the verbs of a model, representing behavior over time and space. In all, there are three primary kinds of behavioral things.   行...
分类:其他好文   时间:2014-06-17 21:47:37    阅读次数:315
shell使用for循环完成100以内累加
#100以内整数和 #!/bin/sh declare-iSUM=0 for((i=1;i<=100;i+=1)) do letSUM+=$i done echo$SUM #!/bin/sh declare-iSUM=0 foriin{1..100} do letSUM+=$i done echo$SUM #100以内偶数和 #!/bin/sh declare-iSUM=0 for((i=2;i<=100;i+=2)) do letSUM+=$i done echo$SUM..
分类:其他好文   时间:2014-06-17 17:46:32    阅读次数:232
linux bash shell学习笔记
Bash 开头#!/bin/bash。echo 语句屏蔽 “ ” 若使用则 \” \” 。 即使文件没有执行权限,仍然可以通过bashhello.sh 或者 sh hello.sh来执行文件。 标准输出写入>>文件中,标准错误输出默认为屏幕。标准错误输出为2>>。错误和输出都写入文件:1>>log 2>>err。两者都写入同一个文件:>&all_result,> ...
分类:系统相关   时间:2014-06-17 16:29:35    阅读次数:359
MySql按周/月/日分组统计数据的方法
知识关键词:DATE_FORMAT  select DATE_FORMAT(create_time,'%Y%u') weeks,count(caseid) count from tc_case group by weeks;   select DATE_FORMAT(create_time,'%Y%m%d') days,count(caseid) count from tc_case ...
分类:数据库   时间:2014-06-17 16:17:54    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!