个人开发工具
在 shell 默认文本处理程序不满足需求时,可以自行编写文本处理程序,这些子程序用 pdevtool %subcommand% 来调用。 例如:
cat ~/Downloads/logs-creative1121.txt |grep -o -E 'full_path=[^ ]+' | pdevtool urldecode |grep -o -E 'filtering=[^&]+'| cut -d'=' -f2 | pdevtool jsonkeys | sort | uniq -c | sort -n > a.txt