Chinese punctuation to English punctuation

Python中:中文标点转换成英文标点

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# In Python3, use str.maketrans instead
table = {ord(f):ord(t) for f,t in zip(
u',。!?【】()%#@&1234567890',
u',.!?[]()%#@&1234567890')}
t = u'中国,中文,标点符号!你好?12345@#【】+=-()'
t2 = t.translate(table)
'''
>>> print t2
中国,中文,标点符号!你好?12345@#[]+=-()
'''
作者:灵剑
链接:https://www.zhihu.com/question/37720196/answer/115870233
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

链接

awk filter by one col larger than a value

1
awk -F'\t' '$36 > "2017-10-18 15:00:00" {print ;}' 13224_sample_material_encode_full | sort -r > target.txt

打印第36列大于某一时刻的整行

1
'$36 > "2017-10-18 15:00:00" {print ;}'

filter: $36 > "2017-10-18 15:00:00"

print whole line: print ;

逆序

sort reverse: sort -r