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

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
12
最近訪問板塊 發(fā)新帖
樓主: ljwd1000
打印 上一主題 下一主題

文本操作 [復(fù)制鏈接]

論壇徽章:
0
11 [報(bào)告]
發(fā)表于 2012-04-28 17:17 |只看該作者
回復(fù) 7# zooyo


    多謝!

論壇徽章:
0
12 [報(bào)告]
發(fā)表于 2012-04-28 17:18 |只看該作者
回復(fù) 10# dahaoshanhe


    嗯。是的。是我給的例子不夠全,意思沒有表達(dá)清楚,不好意思

論壇徽章:
0
13 [報(bào)告]
發(fā)表于 2012-05-02 20:49 |只看該作者
Linux9253 發(fā)表于 2012-04-27 10:31
grep -oP '((\d{1,3}\.){3})\d+' ppp


請(qǐng)問這里使用參數(shù)"P"的原因是什么?
是因?yàn)間rep本身對(duì)轉(zhuǎn)義字符類"\d"不支持,需要使用"-P"嗎?因?yàn)間rep對(duì)"\b"或"\B"這種是支持的.
  1.        -P, --perl-regexp
  2.               Interpret PATTERN as a Perl regular expression


  3.        The caret ^ and the dollar sign $ are metacharacters that respectively match the empty string at  the  beginning
  4.        and  end  of  a  line.   The symbols \< and \> respectively match the empty string at the beginning and end of a
  5.        word.  The symbol \b matches the empty string at the edge of a word, and \B matches the  empty  string  provided
  6.        it’s not at the edge of a word.
復(fù)制代碼

論壇徽章:
3
CU十二周年紀(jì)念徽章
日期:2013-10-24 15:41:34子鼠
日期:2013-12-14 14:57:19射手座
日期:2014-04-25 21:23:23
14 [報(bào)告]
發(fā)表于 2012-05-03 10:52 |只看該作者
  1. perl -ne 'while(/((?:\d{1,3}\.){3}\d{1,3})/g){print "$1\t"} print "\n"' filename
復(fù)制代碼

論壇徽章:
0
15 [報(bào)告]
發(fā)表于 2012-05-04 10:18 |只看該作者
回復(fù) 13# chaogle


    -P意思就是支持?jǐn)U展正則、

論壇徽章:
0
16 [報(bào)告]
發(fā)表于 2012-05-04 10:19 |只看該作者
回復(fù) 13# chaogle


    -P意思就是支持?jǐn)U展正則、

論壇徽章:
145
技術(shù)圖書徽章
日期:2013-10-01 15:32:13戌狗
日期:2013-10-25 13:31:35金牛座
日期:2013-11-04 16:22:07子鼠
日期:2013-11-18 18:48:57白羊座
日期:2013-11-29 10:09:11獅子座
日期:2013-12-12 09:57:42白羊座
日期:2013-12-24 16:24:46辰龍
日期:2014-01-08 15:26:12技術(shù)圖書徽章
日期:2014-01-17 13:24:40巳蛇
日期:2014-02-18 14:32:59未羊
日期:2014-02-20 14:12:13白羊座
日期:2014-02-26 12:06:59
17 [報(bào)告]
發(fā)表于 2012-05-04 10:32 |只看該作者
回復(fù) 16# Linux9253

$ man grep
           -P, --perl-regexp
              Interpret  PATTERN  as  a  Perl  regular  expression  (PCRE, see
              below).  This is highly experimental and grep  -P  may  warn  of
              unimplemented features.
您需要登錄后才可以回帖 登錄 | 注冊(cè)

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

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP