初试walle部署

walle--标准按照

为数据库walle授权

grant create, select, insert, update, delete, alter, index on walle.* to [email protected] identified by 'walle_passwd';

修改配置文件

vim  walle/config/settings_prod.py

字符长度排序

http://bbs.chinaunix.net/thread-594724-1-1.html

awk '{print  length($0),$0}' file |sort -nr|sed '/^[^ ]* /s///'

如何对列表按字符长度排序
/^[^ ]* /匹配n个不是空格的字符然后是一个空格,也就是第一列
/^[^ ]* /s// 替代匹配的内容
//新内容是null

有时间看看那篇 sed1line

## 方法2
while read line;do
        echo -n "$line ";expr length $line
done<filename|sort -k2nr|cut -f1 -d' '

猜你喜欢

转载自blog.51cto.com/11114389/2449263