亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1685 | 回復: 6
打印 上一主題 下一主題

一個文本編輯求幫助! [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2012-05-09 15:55 |只看該作者 |倒序瀏覽
文本如下所示:
106># cat B2BSERVERNAME.txt
aly000001.fxw.vmod.cn           server_name www.ludaole.com ludaole.com www.ludaole.net ludaole.net aly000001.fxw.vmod.cn;
aly000002.fxw.vmod.cn           server_name www.poljes.com poljes.com  aly000002.fxw.vmod.cn;

(有很多行,諸如aly000002.fxw.vmod.cn并不一定在server_name的最后,有可能這樣的形式:
aly000002.fxw.vmod.cn           server_name aly000002.fxw.vmod.cn www.poljes.com poljes.com  ;)
需要過濾取出后的結果如下:
server_name www.ludaole.com ludaole.com www.ludaole.net ludaole.net
server_name www.poljes.com poljes.com

謝謝
系統(tǒng):centos 5.6

論壇徽章:
0
2 [報告]
發(fā)表于 2012-05-09 17:09 |只看該作者
  1. sed  's/aly[0-9]\+.fxw.vmod.cn//g' YRFILE
復制代碼
回復 1# unandy


   
dragon23452345 該用戶已被刪除
3 [報告]
發(fā)表于 2012-05-09 17:16 |只看該作者
提示: 作者被禁止或刪除 內容自動屏蔽

論壇徽章:
2
巨蟹座
日期:2013-12-07 16:51:13天秤座
日期:2013-12-11 15:12:14
4 [報告]
發(fā)表于 2012-05-09 18:01 |只看該作者
提示: 作者被禁止或刪除 內容自動屏蔽

論壇徽章:
0
5 [報告]
發(fā)表于 2012-05-11 10:05 |只看該作者
    十分感謝三位!

論壇徽章:
1
2015年辭舊歲徽章
日期:2015-03-03 16:54:15
6 [報告]
發(fā)表于 2012-05-11 10:22 |只看該作者
本帖最后由 L_kernel 于 2012-05-11 10:23 編輯
  1. $ cat file.txt
  2. aly000001.fxw.vmod.cn           server_name www.ludaole.com ludaole.com www.ludaole.net ludaole.net aly000001.fxw.vmod.cn;
  3. aly000002.fxw.vmod.cn           server_name www.poljes.com poljes.com  aly000002.fxw.vmod.cn;
  4. aly000002.fxw.vmod.cn           server_name aly000002.fxw.vmod.cn www.poljes.com poljes.com;
  5. $ sed -n 's/;$//;s/aly[0-9]\{6\}\.fxw\.vmod\.cn\( \+\|$\)//gp' file.txt
  6. server_name www.ludaole.com ludaole.com www.ludaole.net ludaole.net
  7. server_name www.poljes.com poljes.com  
  8. server_name www.poljes.com poljes.com
復制代碼

論壇徽章:
0
7 [報告]
發(fā)表于 2012-05-11 20:57 |只看該作者
看得我眼花瞭亂,搶不到標了。
佩服樓上各位。

------------------------------------
歡迎光臨我的博客:www.danoking.com [DNK的博客]
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP