- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 为文件的每一行后面添加特定字符串
使用shell脚本为文件每一行后面添加相同的的字符串方法如下: 1. 用sed实现 sed 's#$#字符串#' file 2. 用awk实现 awk '{print $0"字符串"}' file
2013-02-21 17:02:00
1432
转载 linux文件合并去重
(1)两个文件的交集,并集 前提条件:每个文件中不得有重复行 1. 取出两个文件的并集(重复的行只保留一份) cat file1 file2 | sort | uniq > file3 2. 取出两个文件的交集(只留下同时存在于两个文件中的文件) cat file1 file2 | sort | uniq -d > file3
2013-02-21 16:21:59
599
原创 yum-utils
Yum-utils 剖析 功能简介: 管理repository及扩展包的工具 (主要是针对repository) 准备: 1.安装createrepo ,可以通过如下命令实现 yum install createrepo 2. rpm包放在/media 命令简介 一、 debuginfo-install : 安装debuginfo 包及其依赖
2011-12-06 09:08:01
14174
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅