赋值: str="i am vincen" 计算字符串长度: ${#str} 字符串截取: ${#str:2} ${#str:2:3} 从开头删除匹配的子串: ${str#"i"} 从结尾删除匹配的子串: ${str%"vincen"} 字符串内容替换(替换第一个匹配到的) ${str/old/ne ...
分类:
系统相关 时间:
2017-03-14 13:36:33
阅读次数:
161
单词速记本192-328; 同济大学第七版第二章第一节; ...
分类:
其他好文 时间:
2017-03-13 19:09:11
阅读次数:
124
题目描述 牛客最近来了一个新员工Fish,每天早晨总是会拿着一本英文杂志,写些句子在本子上。同事Cat对Fish写的内容颇感兴趣,有一天他向Fish借来翻看,但却读不懂它的意思。例如,“student. a am I”。后来才意识到,这家伙原来把句子单词的顺序翻转了,正确的句子应该是“I am a ...
分类:
其他好文 时间:
2017-03-09 15:15:57
阅读次数:
126
#!/bin/bash
path=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
exportpath
###备份源目录
dir="/home/backup"
###备份目的目录
backup="/home/backup/web_backup"
###名字
filename="cpiaoju.tar.gz"
###时间
backtime=`date+%Y%m%d`
[!-e"$dir"]&&am..
分类:
Web程序 时间:
2017-03-09 01:30:08
阅读次数:
185
Use Gedit as Remote File Editor via FTP and SSH Migrating from Windows Vista to Ubuntu 8.04 and have been using it all the way to 9.10, I am now a com ...
分类:
其他好文 时间:
2017-03-08 22:52:49
阅读次数:
420
除了automake/autoconfig 之外,还有其他的替换方式。 参看vdsm https://github.com/oVirt/vdsm/blob/master/Makefile.am http://www.cs.colby.edu/maxwell/courses/tutorials/mak ...
分类:
其他好文 时间:
2017-03-08 13:24:08
阅读次数:
169
1. Examples/Makefile.am:26: to 'configure.ac' and run 'autoconf' again. configure.ac:211: error: required file 'config.h.in' not found 解决方法: autorecon ...
分类:
其他好文 时间:
2017-03-07 22:29:36
阅读次数:
191
原因: 出现这种问题多半是因为你插入或者更新数据库时,datetime字段值为空默认插入0001年01月01日造成datetime类型溢出。 传给数据库表的时间类型值是null值。这里的null指的是程序代码中的null,多数出现这种情况的场景是:在程序里面定义了一个时间类型的变量,没有给赋值,就传 ...
分类:
数据库 时间:
2017-03-04 11:00:03
阅读次数:
278
一、 Git 常用命令速查 git branch 查看本地所有分支git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支git branch -r 查看远程所有分支git commit -am "init" 提交并且加注释 git remote a ...
分类:
其他好文 时间:
2017-02-28 18:57:08
阅读次数:
204