Linux Shell sort命令,多域排序的正确用法。。

之前多少次都是错的。

这才是正确的,假设对列1按照字母序,2按照数值序。
sort -k 1,1 -k2,2n
2014.05.12更新:
-g, --general-numeric-sort compare according to general numerical value
-n, --numeric-sort compare according to string numerical value

如果数据中有科学计数法,形如"8.0177[......]

继续阅读

Gearman(分布式任务调度框架) 简介

在@hacker101的围脖上看到了这个框架,看了下官网,觉得很适合爬虫、多进程并行处理等任务。

看看官方提供的几个例子:

  • Mass PDF quote email
  • Synchronous Image Resize
  • Shard-Query: a PHP project which uses Net_Gearman to execute queries on horizontally partitioned databases and returns the results.[......]

    继续阅读