---
title: "公司技术积累"
author: "RepublicW"
date: "2014-04-16T12:12:49Z"
tags: []
categories: ["非技术"]
slug: "untitled"
draft: false
lastmod: "2014-04-16T12:12:49Z"
id: 2047308
url: "https://republicw.iteye.com/blog/2047308"
---

```sql


mysql -ufortuna -pfortuna_db_connections -h10.20.35.185 fortuna_fish -e "select user_id, device_token from fish_user where language='zh_TW' and level>15 and udpate_time>='2013-10-01 00:00:00' and udpate_time<'2013-12-11 00:00:00'">tw.txt


```




```bash

cat cn.txt | sort -u -k 2 >> 1.txt
cat 1.txt | cut -f 1 > 2.txt
split -l 10000 2.txt cn_
find . -type f | xargs -i mv {} {}.txt



```


-type 指定文件类型 f为普通文件
-name  为按文件查找