Browsing: shell

如何快速目录下的文件名字转化为小写

 

{ Comments are closed }

Transpose File

Given a text file file.txt, transpose its content.

You may assume that each row has the same number of columns and each f[……]

Read more

{ Comments are closed }

Word Frequency

Write a bash script to calculate the frequency of each word in a text file words.txt.

For simplicity sake, you may assume:[……]

Read more

{ Comments are closed }

How would you print just the 10th line of a file?(shell)

For example, assume that file.txt has the following content:

Your script should output th[……]

Read more

{ Comments are closed }

Mongo MapReduce使用统计uv(二)

mongo支持 JavaScript脚本运行:

shell中运行:

shell运行中加上–quit:
[crayon-5c6c1d2d3c808471120[……]

Read more

{ Comments are closed }

阿里云Centos6.5 安装php5.5

下面是rpm安装方法:

接下来可以安装php的核心部分:

其他的扩展安装如下:

运行php[……]

Read more

{ Comments are closed }

pt-osc 灾难来了!

昨天,给定订单表加字段,该表数据30w多记录。数据库数据大小10G多,由于系统负载可能高,所以选择黑客工具加字段,首先备份数据,其次是加字段,加完字段后,习惯的通过phpMyAdmin控制台看加完的字段,鼠标往记录那里点击时,鼠标变成了红叉,我就感觉不对劲,点开后,一看空的。第一反映完了,数据没了,[……]

Read more

{ Comments are closed }

Martinjingyu的开发环境

Mac Pro Book一台去年新款,最近这4年多折腾的东西总结下。

Mac的包管理器首选HomeBrew,安装如下:

接下来介绍vim的配置,用VundleVim管理:
[crayon-5c6c1d2d3e0a82565[……]

Read more

{ Comments are closed }

mysql物理级别热备脚本

 

{ Comments are closed }

git 从另一个分支融合部分文件

 

{ 1 Comment }