src_dir=$(pwd)/All_hdst_dir=$(pwd)/Alldiff_dir=$(pwd)/diffif [ ! -d $diff_dir ]then mkdir $diff_dirfifor src_full_entry in $src_dir/*do src_cat_entry=...
分类:
其他好文 时间:
2014-07-10 10:07:49
阅读次数:
241
文件查看主要有以下命令cat、more、less、head、tailcat命令:是一个文本文件查看和连接工具。从第一个字节开始正向查看文件的内容,适用于小文件以第一行开始,显示没有停顿,文件较长的话,只能看到最后一页内容在屏幕上当文件内容过多时,就带来一个问题,因为文本在屏幕上迅速地闪过,用户来不及...
分类:
系统相关 时间:
2014-07-07 20:30:16
阅读次数:
354
还记得字典吗?[html]view plaincopyvarnumberOfLegs=["spider":8,"ant":6,"cat":4]numberOfLegs["bird"]=2["bird"]就是下标 下标可以在类和结构体中定义。定义下标[html]view plaincopysubscr...
分类:
其他好文 时间:
2014-06-30 21:59:22
阅读次数:
271
创建命令f1
创建一个shell脚本 f1,放到 $PATH 可以找到的位置:
{CSDN:CODE:411063}
f1用法
1. 创建一个文件 foo.txt,并 backup 它
$ cat foo.txt
1
$ f1 backup foo.txt
2. 修改它
$ cat foo.txt
2
3. 还原到上一个版本
$ f1 ...
分类:
其他好文 时间:
2014-06-30 17:04:38
阅读次数:
228
【题目】
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For example, given
s = "catsanddog",
dict = ["cat", "cats", "and", "sand", "dog...
分类:
其他好文 时间:
2014-06-30 00:51:41
阅读次数:
295
安装vmwaretools2.修改虚拟机vmx文件tools.syncTime改为"TRUE"3.重启虚拟机此时发现时间比系统时间少了10+个小时4.修改/etc/sysconfig/clock#cat/etc/sysconfig/clockZONE="America/Los_Angeles"UTC=trueARC=falseUTC为true表示RTC保存的时间是UTC时间,false表示保存的是本地..
分类:
系统相关 时间:
2014-06-28 06:40:40
阅读次数:
372
系统环境[root@localhost~]#cat/etc/redhat-releaseCentOSrelease6.5(Final)[root@localhost~]#uname-aLinuxlocalhost.localdomain2.6.32-431.el6.x86_64#1SMPFriNov2203:15:09UTC2013x86_64x86_64x86_64GNU/Linuxphp5.4yum源rpm-Uvhhttp://mirror.webtatic.com/yum/el6/latest..
分类:
Web程序 时间:
2014-06-27 06:39:44
阅读次数:
666
系统环境:[root@salt_serverhome]#ifconfigeth0|grep"inetaddr:"|awk-F:‘{print$2}‘|awk‘{print$1}‘
192.168.100.228
[root@salt_serverhome]#cat/etc/redhat-release
CentOSrelease6.3(Final)
[root@salt_serverhome]#uname-r
2.6.32-279.el6.x86_64
[root@salt_serverhome]#..
分类:
其他好文 时间:
2014-06-27 06:12:03
阅读次数:
311
Zabbix安装和监控系统环境[root@zabbix~]#cat/etc/redhat-releaseCentOSrelease6.3(Final)[root@zabbix~]#uname-aLinuxzabbix2.6.32-279.el6.x86_64#1SMPFriJun2212:19:21UTC2012x86_64x86_64x86_64GNU/LinuxYum安装nginx、php、mysql配置nginxyum源,php和mysql默认就用centos..
分类:
其他好文 时间:
2014-06-27 06:05:01
阅读次数:
528