ITeye博客

awk

fengfangfang · 2010-06-07 14:11 · shell · 操作系统 · MySQL · Markdown

cat test1.txt | awk '{print "select videoid from video where infohash=""'\''"$1"'\'';"}' > movieid.txt

 

mysql -h192.168.1.15 -uroot  --column-names=false < movieid.txt > movie.txt

 

cat movie.txt | sort -n | uniq | wc -l

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。