为什么要使用正则表达式 UNIX 中提供了许多 指令 和 tools,它们具有在文件中
查找(Search)字串或替换(Replace)字串 的功能。像 grep, vi , sed,
awk,...不论是查找字串或替换字串,都得先告诉这些指令所要查找(被替换)的字串为何。若未能预先明确知道所要查....
分类:
其他好文 时间:
2014-05-04 11:24:00
阅读次数:
312
一.检查环境1.操作系统版本# uname -a2.补丁包三大补丁包#swlist -l
bundle|grep QPKAPPS#swlist -l bundle|grep QPKBASE#swlist -l bundle|grep
HWEnable11i#swlist -l patch -a su...
分类:
其他好文 时间:
2014-05-04 10:50:35
阅读次数:
319
由于ubuntu中可能会有默认的jdk,如openjdk,所以,为了使默认使用的是我们安装的jdk,还要进行如下工作。执行代码:update-alternatives
--install /usr/bin/java java /usr/lib/jvm/java/jdk1.6.0_12/bin/jav...
分类:
其他好文 时间:
2014-05-03 22:39:52
阅读次数:
436
screen 默认使用 bash shell,一般情况下screen只用于android
build,tmux则是我的日常使用多终端管理工具。# Default Shellshell "/bin/bash"# show status
barhardstatus alwayslastline "%{b...
分类:
系统相关 时间:
2014-05-03 22:14:57
阅读次数:
454
[root@rusky /]# vi
/etc/passwdroot:x:0:0:Redhat5:/root:/bin/bashrusky:x:500:500::/home/rusky:/bin/bash1.root:x:0:0:Redhat5:/root:/bin/bash
共七组,由:隔开 na...
分类:
其他好文 时间:
2014-05-03 22:09:12
阅读次数:
338
tmux中默认的shell是zsh,zsh在日常中使用可以协助我们高效地使用shell命令。#
设置Shellset-option -g default-shell /bin/zsh# 设置复制模式,空格开始选,Enter结束复制setw -g
mode-keys vi #开启status-bar ...
分类:
系统相关 时间:
2014-05-03 22:06:18
阅读次数:
1323
#!/bin/bash
clear
echo ""
echo "Enter Your First Name:"
read FirstName
echo "Enter Your Last Name:"
read LastName
echo "$FirstName $LastName">trans.dat...
分类:
其他好文 时间:
2014-05-03 22:02:31
阅读次数:
299
折腾了一个中午,在终端输入 vim myProgram
然后编辑以下内容
#!/bin/bash
clear
echo ""
echo "The Telephone Book"
echo ""
echo "1.Display A Telephone Number"
ehco "2.Add A New Telephone Number"
echo ""
echo "Q Quit"
ec...
分类:
系统相关 时间:
2014-05-03 21:26:33
阅读次数:
483
#!/bin/bash
clear
declare FirstName Greeting
Greeting="Hello ,"
echo ""
echo "Enter Your First Name:"
read FirstName
echo "$ Greeting $FirstName"
首先 vim Print 回车
然后 i 进入插入状态
编辑以上代码,Esc 键...
分类:
其他好文 时间:
2014-05-03 21:05:20
阅读次数:
283
1 tomcat 6600启动报错[root@localhost webapps]# sh /usr/local/apache-tomcat-6.0.37_6600/bin/startup.sh Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.37_6600Using CATALINA_HOME: /usr/local/apach...
分类:
Web程序 时间:
2014-05-03 20:52:53
阅读次数:
571