- 浏览: 50654 次
最新评论
文章列表
Jdom
package org.zbq;
import java.io.File;
import java.io.FileOutputStream;
import org.jdom.Attribute;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
public class JDomOutput {
public static void main(String[] args) throw ...
- 2012-06-30 21:33
- 浏览 549
- 评论(0)
Jdom
package org.zbq;
import java.io.File;
import java.io.FileOutputStream;
import org.jdom.Attribute;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
public class JDomOutput {
public static void main(String[] args) throw ...
- 2012-06-30 21:33
- 浏览 449
- 评论(0)
Server
package org.zbq.server;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAda ...
- 2012-06-30 21:29
- 浏览 751
- 评论(0)
Server
package org.zbq.server;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAda ...
- 2012-06-30 21:29
- 浏览 301
- 评论(0)
package org.view4;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.ev ...
- 2012-06-24 12:55
- 浏览 626
- 评论(0)
package org.view4;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.ev ...
- 2012-06-24 12:55
- 浏览 303
- 评论(0)
类
class Student:
stuID = ""
name = ""
sex = "M"
classID = "NULL"
#set ID
def setStuID(self,stuID):
self.stuID = stuID
def setName(self,name):
self.name = name
def setSex(self,sex):
self.sex = sex
def setClassID(self,classID):
self.c ...
- 2012-06-04 14:42
- 浏览 1573
- 评论(0)
类
class Student:
stuID = ""
name = ""
sex = "M"
classID = "NULL"
#set ID
def setStuID(self,stuID):
self.stuID = stuID
def setName(self,name):
self.name = name
def setSex(self,sex):
self.sex = sex
def setClassID(self,classID):
self.c ...
- 2012-06-04 14:42
- 浏览 672
- 评论(0)
#!/usr/bash
#Output file save the students information
FILE=./student.db
#temp file
TMP=./.tmp
#This is menu
menu () {
echo "************************************************"
echo -e "\t1.Add a student information"
echo -e "\t2.Query a student information"
echo ...
- 2012-05-25 14:52
- 浏览 794
- 评论(0)
#!/usr/bash
#Output file save the students information
FILE=./student.db
#temp file
TMP=./.tmp
#This is menu
menu () {
echo "************************************************"
echo -e "\t1.Add a student information"
echo -e "\t2.Query a student information"
echo ...
- 2012-05-25 14:52
- 浏览 713
- 评论(0)
#!/usr/bash
#Output file save the students information
FILE=./zhubinqiang_v1.0
#temp file
TMP=./.tmp
#This is menu
menu () {
echo "***************************************************************************"
echo -e "\t\t1.Add a student information"
echo -e "\t\t2.Quer ...
- 2012-05-24 10:35
- 浏览 846
- 评论(0)
#!/usr/bash
#Output file save the students information
FILE=./zhubinqiang_v1.0
#temp file
TMP=./.tmp
#This is menu
menu () {
echo "***************************************************************************"
echo -e "\t\t1.Add a student information"
echo -e "\t\t2.Quer ...
- 2012-05-24 10:35
- 浏览 1433
- 评论(0)
首先要记住的是: 正则表达式与通配符不一样,它们表示的含义并不相同!
正则表达式只是一种表示法,只要工具支持这种表示法, 那么该工具就可以处理正则表达式的字符串。vim、grep、awk 、sed 都支持正则表达式,也正是因为由于它们支持正则,才显得它们强大;在以前上班的公司里,由于公司是基于web的服务型网站(nginx),对正则的需求比 较大,所以也花了点时间研究正则,特与大家分享下:
1基础正则表达式
grep 工具,以前介绍过。
grep -[acinv] '搜索内容串' filename
-a 以文本文件方式搜索
-c 计算找到的符合行的次数
-i 忽略大小写
-n 顺 ...
- 2012-05-23 12:31
- 浏览 658
- 评论(0)