码迷,mamicode.com
首页 >  
搜索关键字:bash script    ( 38035个结果
简述configure、pkg-config、pkg_config_path三者的关系
转自:简述configure、pkg-config、pkg_config_path三者的关系 一、什么是configure 源码安装过程中大多会用到configure这个程序,一般的configure都是一个script,执行时可以传入必要参数告知配置项目。 configure程序它会根据传...
分类:其他好文   时间:2014-06-27 00:25:45    阅读次数:310
Android开发杂记(一)
1、cygwin环境变量设置可在Cygwin.bat 中设置set NDK_ROOT=P:/android/android-ndk-r8e或者在home\Administrator\.bash_profile中设置NDK_ROOT=/cygdrive/p/android/android-ndk-r8...
分类:移动开发   时间:2014-06-26 22:51:13    阅读次数:389
bash 函数返回值任意值
bash函数的返回值只能是一个数值,以0表示成功,非0表示失败。如果想在bash函数中返回除了数值之外的值,需要些技巧。以返回一个字符串为例:1. 通过全局变量var1 function fun()2 {3 var="Hello world!"4 }5 6 fun7 echo $var2. ...
分类:其他好文   时间:2014-06-26 20:18:05    阅读次数:199
sed的选项与命令简要
第一部分:sed命令选项 sed选项说明-n, --quiet, --silent静默模式,取消将模式空间中的内容自动打印出来。-e script, --expression=script以选项指定的script来处理文本。-f script‐file, --file=script‐file以选项....
分类:其他好文   时间:2014-06-26 20:14:48    阅读次数:271
defer和async(原生js学习)转
(1)页面下载过程要干的事情页面parse完毕----DOMContentLoaded(DOM树建立完毕)----onload(全部资源下完,图片,iframe,flash这些)注意js脚本要下载并执行完毕,dom树才能出来,因为script标签也属dom的一部分,同时因为js也许有dom的操作,所...
分类:Web程序   时间:2014-06-25 16:51:07    阅读次数:219
HTML设置焦点
<body <formaction=""method="post" name="form1"> <inputtype="text"id="id"/> </form> </body> <script>functionmyfocus(){ document.getElementById(‘id‘).focus();}</script>
分类:Web程序   时间:2014-06-25 10:11:17    阅读次数:181
a little riak book
a little riak book 的无聊总结 #!/bin/bash # Riak HTTP interface stays true to their intent: 1xx Informational, 2xx Success, # 3xx Further Action, 4xx Client Error, 5xx Server Error ### put PORT=10...
分类:其他好文   时间:2014-06-25 08:22:11    阅读次数:178
linux 脚本测试网络速度
example: ./netspeed eth0   1 #!/bin/bash   2   3 INTERVAL="1"  # update interval in seconds   4   5 if [ -z "$1" ]; then   6 echo   7 echo usage: $0 [network-interface]   8 echo   9 echo ...
分类:系统相关   时间:2014-06-25 07:24:00    阅读次数:213
CentOS 6.5初始化优化脚本
#!/bin/bash echo"这个是系统初始化脚本,请慎重运行!" input_fun() { OUTPUT_VAR=$1 INPUT_VAR="" while[-z$INPUT_VAR];do read-p"$OUTPUT_VAR"INPUT_VAR done echo$INPUT_VAR } input_again() { MYHOSTNAME=$(input_fun"pleaseinputthehostname:") DOMAINNAME=$(input_fun"p..
分类:其他好文   时间:2014-06-25 06:16:37    阅读次数:345
编译 gstreamer的相关组件
1 #!/bin/bash 2 3 # Create a log file of the build as well as displaying the build on the tty as it runs 4 exec > >(tee build_gstreamer.log) 5 exe...
分类:其他好文   时间:2014-06-25 00:44:22    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!