![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
pythonisa
if you don't have one ,don't be warry! you can create one ,because of you are a coder
展开
-
在windows上编辑的一些文件上传到unix上总会有写古怪的问题
在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file or directory。 分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。 解决:1)在windows下转换: 利用一些编辑器如UltraEdit或EditPl转载 2013-05-24 14:45:53 · 931 阅读 · 0 评论 -
shell脚本给我带来的一些坑
1、我经常用shell脚本批量去建一些表 ,count ....while do [sql stat] done 等等 ,在create table select * from xxxx where 1=2的时候 ,你是否被id没有自动去建立primary key auto_increment 的主键索引给枪毙呢,反正我被坑了。 2、你是否写过函数function(){原创 2013-06-07 16:23:55 · 1444 阅读 · 0 评论 -
使用sed处理文件,方便你的程序进一步处理
SED :: 把某文件中的fred替换成john sed -e 's/fred/john/g' 替换文件中匹配正则表达式的字符串 sed -e 's/[0-9]+/number/g’ 把HTML文件中的 “X” 变成红色 sed -e ‘s!X!X!g; 把所有后缀为.suf1 改名成.suf2 ls -1转载 2014-02-11 11:11:14 · 1378 阅读 · 0 评论 -
难已记住的find命令
FIND :: 在整个文件系统中查的一个文件 find / -type f -name -print 查找所有匹配于模式的文件 find . -type f -name “**” -print 删除系统中所有的core文件 find / -type f -name core -exec /bin/rm -f {} \;转载 2014-02-11 11:00:09 · 1044 阅读 · 0 评论