2013年7月21日

按列拼接文件

摘要: 同学问下如何按列拼接文件,脚本中写了三种方法……#! /bin/bash len1=`wc -l $1 | cut -d ' ' -f1`len2=`wc -l $2 | cut -d ' ' -f1`file1=$1file2=$2if [ ${len1} -le ${len2} ]then file1=$2 file2=$1fi#paste ${file1} ${file2} ... 阅读全文

posted @ 2013-07-21 16:50 阿加 阅读(204) 评论(0) 推荐(0) 编辑

导航