删除过期账号实例
1、导出一个注册用户表的用户名数据
2、导出最近一年登陆的用户名数据
比较两个文件的差异
grep -wvFf file1.txt file1.txt
//存在于file2文件中,但不存在于file1文件的行
替换每行的后缀
sed -ie 's/@xxx$/@xxx.com/' xxx.txt
查找文件某行数据
sed -n '3457,1p' xxx.txt
| Print article | This entry was posted by Herbert on 2010/04/07 at 18:04, and is filed under Linux. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |