![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux 问题解决
Gerry-格里
奋斗者的IT人员,如果你真的想记住什么,请在一天之内完成,如果完成不了,必须在24小时内复习。
展开
-
Linux文件替换操作
1)批量修改文件格式为unix find . -name "*.hql" | xargs sed -i 's/\r$//g' #批量转dos to unix 2)批量替换文件内容 [root@tpmaster v3.0]# find *.json | xargs perl -pi -e 's|GYALLORCL|orcl188|g' 3)批量去掉空格: [root@dp-master doris_data]# find *.txt | xargs perl -pi -e 's|\s...原创 2020-06-24 09:23:20 · 830 阅读 · 0 评论 -
PHP支持Sybase IQ数据库的配置
说明:Sybase IQ安装目录:/sybiq/asiq153/ ( 本人是在Sybase IQ 库上做的php开发,网上资料比较少,这是本人花了将近一个星期才解决的问题 ZCTT--ChenHuiCan) ------------编译PHP,支持Sybase IQ----------- PHP版本:php-5.5.3.tar.gz ./configure --wit原创 2013-09-12 12:21:54 · 1713 阅读 · 0 评论 -
关于php中Warning: date(): It is not safe to rely on the system's timezone settings.解决
(平台 Linux系统) 找到你的php.ini文件: 及编译时参数 --with-config-file-path=/usr/local/php5 (php.ini位置,根据你参数位置可能不同) [root@JK02 php5]# vi php.ini 找到: [Date] ; Defines the default timezone used by the date fun原创 2013-09-12 16:37:12 · 914 阅读 · 0 评论 -
Linux输出所在目录
[dmp@JQ2db2 taobao]$ echo $PWD /zctt/dmp/total/qvshu/taobao [dmp@JQ2db2 taobao]$ echo $PWD |awk -F / '{print $NF}' taobao原创 2013-10-31 16:04:04 · 685 阅读 · 0 评论 -
getopts使用简介
getopts可以编写脚本,使控制多个命令行参数更加容易。getopts用于形成命令行处理标准形式。一般来讲,脚本应具有确认带有多个选项的命令文件标准格式的能力。 getopts一般格式为:getopts option_string variable getopts读取option_string,获知脚本中使用了有效选项,getopts查看所有以连字符“-”开头的参数,将其视为选项。有原创 2013-11-20 15:17:04 · 1267 阅读 · 0 评论 -
Linux脚本执行权限设置
chmod u+x filename 只有用户自己可执行,其它人不能执行 chmod ug+x filename 仅用户及同组人可执行,其它人不能执行 chmod a+x filename 所有人都可以执行原创 2013-11-20 15:17:57 · 1499 阅读 · 0 评论 -
basename的用法
含义: basename为shell,其作用为分离路径中的文件名。 如下: [root@redhat myshell]# basename /mydata/shell/myshell/getopts.sh getopts.sh原创 2013-11-20 15:32:13 · 1337 阅读 · 0 评论 -
whereis的用法
[root@redhat mydata]# whereis strings strings: /usr/bin/strings /usr/include/strings.h /usr/share/man/man1/strings.1.gz /usr/share/man/man1p/strings.1p.gz原创 2013-11-20 15:36:24 · 1098 阅读 · 0 评论