【Swift初步】1、第一个swift程序。 You don’t need to import
a separate library for functionality like input/output or string handling. Code
written at global s...
分类:
其他好文 时间:
2014-06-16 08:30:56
阅读次数:
204
一般我们在linux上读取文件,是用vi工具,如果是写shell 脚本时,一般式通过cat 再
使用管道来达到流的处理。但如果文件太大,单纯的cat 可能会使用过多的内存,而且实现上还需要后续的加工,不大可取。下面我分享两个方法来读取部分文件。方法一sed
-n "10,20p" /opt/chen...
分类:
系统相关 时间:
2014-06-16 07:23:20
阅读次数:
308
silverlight目前开发的应用,想做到系统内注销后自动重新启动下sllauncher.exe,实现方式是通过WMI的COM接口,获取到当前应用的执行命令行(CommandLine);并通过shell运行;代码如下:#region
Using Sectionusing System;using ...
分类:
Web程序 时间:
2014-06-13 00:51:48
阅读次数:
306
b1=b2=""b3="hello"if [[ -n "${b3}" ]]then echo "not
null"else echo "null"fib1 nullb2 nullb3 not null-n str 字符串长度非零
分类:
其他好文 时间:
2014-06-13 00:15:10
阅读次数:
241
cut命令cut
--help,cut的使用比较简单-d,指定分隔字符,默认以制表符为分隔符。通常与 -f 一起使用-f,依据 -d 的分隔字符将一段信息分割成为数段,用 -f
表示取出第几段下面是取出系统变量PATH中的第7个路径下面是取出第2~4,以及第6个路径-c -b,分别表示以字符 (ch...
分类:
其他好文 时间:
2014-06-12 11:50:16
阅读次数:
209
PHP中有丰富的运算符集,它们中大部分直接来自于C语言。按照不同功能区分,运算符可以分为:算术运算符、字符串运算符、赋值运算符、位运算符、条件运算符,以及逻辑运算符等。当各种运算符同在一个表达式中时,它们的运算是有一定的优先级的,下面将详细介绍。PPT下载请点击
PHP5.4 的流程控制语句if ....
分类:
Web程序 时间:
2014-06-12 07:44:26
阅读次数:
231
Execute shell commandsThere are a number of
different ways to run shell commands from Ruby.TheexeccommandKernel#execreplaces
the current process and r...
分类:
其他好文 时间:
2014-06-12 06:50:15
阅读次数:
281