#!/bin/bash#提示用户输入echo -n "Please enter number"read n #读入输入的值放到变量n中sd=0rev=""on=$n #将变量n的值保存到变量on中,方便以后用到echo "You put number is $n"while [$n -gt 0]do...
分类:
其他好文 时间:
2014-07-16 23:03:53
阅读次数:
261
#!/bin/bash #判断命令行是否代带有两个文件名的参数 if [ "$1" = "" ] || [ "$2" = "" ] then echo "Please enter file name" exit 1 fi #判断目标文件是否存在 if [ -e $2 ] then echo "...
分类:
其他好文 时间:
2014-07-16 22:59:29
阅读次数:
153
$ echo $((20.0/7))$ zcalc$ bc <<< 20+5/2$ bc <<< 'scale=4;20+5/2'$ expr 20 + 5$ calc 2 + 4$ node -pe 20+5/2 # Uses the power of JavaScript, e.g. : no....
分类:
其他好文 时间:
2014-07-16 22:53:27
阅读次数:
184
源链接还在自己买彩票吗,有个现成的:GNU shuf命令。shuf -i 1-36 -n 12 | xargs -n 6这样就会产生两组彩票(1~36个数字任选)当然还可以派其他用途,比如:1 shuf -e clubs hearts diamonds spades2 3 might output:...
分类:
其他好文 时间:
2014-07-12 09:07:30
阅读次数:
213
#! /bin/sh# From configure.in Revision: 1.430.2.25 .# Guess values for system-dependent variables and create Makefiles.# Generated by GNU Autoconf 2.6...
分类:
其他好文 时间:
2014-07-12 08:55:09
阅读次数:
361
当年Linux没出时,银行就开始信息化建设了。
所为信息化,就是指用计算机工作了。服务客户了。
顺带着,慢慢的建服务器,连网(内部网)。外网(网上银行)
这样下来, unix, dos, win nt, Win **
经过这么多年的发展。一套系统或多套系统已经建成了。
现在想改为前端支持 Linux ,就像让微软把 IE 6, 7, 8, 9, 10, 支持好 w3c 的网络标准一样困...
分类:
系统相关 时间:
2014-07-11 08:17:05
阅读次数:
288
解决cocos2d-x中编译出现的一个小问题
对于cocos2d-x 2.×中编译中,若头文件中引入了#include "cocos-ext.h",在进行C++编译的时候会遇到如下错误:
undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'/lib/x86_64-linux-gnu/libpthread.so.0...
分类:
系统相关 时间:
2014-07-10 21:27:02
阅读次数:
469
使profile生效的方法1.source/etc/profile使用.bash_profile生效的方法1..bash_profile2source.bash_profile3execbash--login
分类:
系统相关 时间:
2014-07-10 19:19:08
阅读次数:
214
Shell编程学习之二一、bash的条件测试测试方法或者说测试书写:testEXPR[EXPR][[EXPR]]例如:测试变量User_Name的之是否为roottest$User_Name="root"[$User_Name=="root"][[$User_Name=="root"]根据比较时操作数的类型,测试类型分为:测试类型运算符运算符所代表的意义示例整..
分类:
系统相关 时间:
2014-07-10 18:36:31
阅读次数:
303
bash的配置文件分为两类全局配置/etc/profile/etc/profile.d/*.sh/etc/bashrc个人配置~/.bash_profile~/.bashrcprofile类的配置:设定环境变量;运行命令或脚本bashrc类的配置:设定本地变量;定义命令别名登录式shell如何读取配置文件(通过本地命令行或远程终端登录;su-usern..
分类:
其他好文 时间:
2014-07-10 17:59:21
阅读次数:
243