Oracle 10g SQL/PLSQL引入了正则表达式语法。有以下几个内置函数:
REGEXP_LIKE
REGEXP_SUBSTR
REGEXP_INSTR
REGEXP_REPLACE
到了11g,oracle引入了一个新的函数:
REGEXP_COUNT
正则表达式的强大功能就不说了,在Oracle10g之前,很多复杂的字符串操作编程需要在客户端应用中实现。
下面简要介绍这几个函数:
?View Code TEXTSQL Element Category Description
————- ———- ————————————————————————————————-
REGEXP_LIKE Condition Searches a character column for a pattern.
[...]
1.Typing invisiable password
?View Code TEXT1
2
3
4
5
echo "Enter your password: \c"
oldstty=`stty -g`
stty -echo intr ^-
read password
stty $oldstty
2.Backspace setting
?View Code TEXT1
stty erase ^h
3.Colunm setting
?View Code TEXT1
stty column 100
4.List current stty setting
?View Code TEXT1
2
3
stty -a (all setting)
stty (undefault setting)
stty -g (RAW mode)
You can get the help files regarding stty usage in the folllowing ways:
?View Code [...]
1.basename
basename去掉带有路径的文件的路径部分。
如:
?View Code BASH1
2
# basename /home/onlyring/bdname.ksh
bdname.ksh
Recent Comments