亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? _chapter 3.htm

?? linux、unix初學者的必讀書籍 詳細講述了shell編程方法與技巧
?? HTM
?? 第 1 頁 / 共 4 頁
字號:
<pre><span class="docEmphStrong">grep '\(3\)\.[0-9].*\1     *\1' datafile</span>
<span class="docEmphasis">northwest        NW      Charles Main     3.0  .98   3   34</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">Prints the line if it contains a
    <span class="docEmphasis">3</span> followed by a period and another number, 
    followed by any number of characters (<span class="docEmphasis">.*</span> ), 
    another <span class="docEmphasis">3</span> (originally tagged), any number 
    of tabs, and another <span class="docEmphasis">3.</span> Since the
    <span class="docEmphasis">3</span> was enclosed in parentheses,
    <span class="docEmphasis">\(3\),</span> it can be later referenced with
    <span class="docEmphasis">\1.</span> <span class="docEmphasis">\1</span> 
    means that this was the first expression to be tagged with the
    <span class="docEmphasis">\( \)</span> pair.</td>
  </tr>
</table>
  </center>
</div>
<h5 id="ch03list19" class="docExampleTitle">Example 3.19 </h5>
<pre><span class="docEmphStrong">grep '\&lt;north' datafile</span>
<span class="docEmphasis">northwest        NW     Charles Main     3.0  .98   3   34</span>
<span class="docEmphasis">northeast        NE     AM Main Jr.      5.1  .94   3   13</span>
<span class="docEmphasis">north            NO     Margot Weber     4.5  .89   5    9</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">Prints all lines containing a word starting with
    <span class="docEmphasis">north.</span> The <span class="docEmphasis">\&lt;</span> 
    is the beginning-of-word anchor.</td>
  </tr>
</table>
  </center>
</div>
<h5 id="ch03list20" class="docExampleTitle">Example 3.20 </h5>
<pre><span class="docEmphStrong">grep '\&lt;north\&gt;' datafile</span>
<span class="docEmphasis">north            NO     Margot Weber     4.5  .89   5   9</span></pre>
<div align="center">
  <center>
  <table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
    <tr>
      <td>
      <h2 class="docSidebarTitle">EXPLANATION</h2>
      <p class="docText">Prints the line if it contains the word
      <span class="docEmphasis">north.</span> The <span class="docEmphasis">\&lt;</span> 
      is the beginning-of-word anchor, and the <span class="docEmphasis">\&gt;</span> 
      is the end-of-word anchor.</td>
    </tr>
  </table>
  </center>
</div>
<h5 id="ch03list21" class="docExampleTitle">Example 3.21 </h5>
<pre><span class="docEmphStrong">grep '\&lt;[a-z].*n\&gt;' datafile</span>
<span class="docEmphasis">northwest        NW     Charles Main    3.0  .98   3   34</span>
<span class="docEmphasis">western          WE     Sharon Gray     5.3  .97   5   23</span>
<span class="docEmphasis">southern         SO     Suan Chin       5.1  .95   4   15</span>
<span class="docEmphasis">eastern          EA     TB Savage       4.4  .84   5   20</span>
<span class="docEmphasis">northeast        NE     AM Main Jr.     5.1  .94   3   13</span>
<span class="docEmphasis">central          CT     Ann Stephens    5.7  .94   5   13</span></pre>
<div align="center">
  <center>
  <table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
    <tr>
      <td>
      <h2 class="docSidebarTitle">EXPLANATION</h2>
      <p class="docText">Prints all lines containing a word starting with a 
      lowercase letter, followed by any number of characters, and a word ending 
      in <span class="docEmphasis">n.</span> Watch the
      <span class="docEmphBoldItalic">.*</span> symbol. It means any character, 
      including whitespace.</td>
    </tr>
  </table>
  </center>
</div>

<h3 class="docSection1Title" id="ch03lev1sec3">3.3 <span class="docEmphasis">grep</span> with 
Pipes</h3>
<p class="docText">Instead of taking its input from a file,
<span class="docEmphasis">grep</span> often gets its input from a pipe.</p>
<h5 id="ch03list22" class="docExampleTitle">Example 3.22 </h5>
<pre>% <span class="docEmphStrong">ls -l</span>
<span class="docEmphasis">drwxrwxrwx  2  ellie    2441 Jan 6 12:34    dir1</span>
<span class="docEmphasis">-rw-r--r--  1  ellie    1538 Jan 2 15:50    file1</span>
<span class="docEmphasis">-rw-r--r--  1  ellie    1539 Jan 3 13:36    file2</span>
<span class="docEmphasis">drwxrwxrwx  2  ellie    2341 Jan 6 12:34    grades</span>

% <span class="docEmphStrong">ls -l | grep '^d'</span>
<span class="docEmphasis">drwxrwxrwx  2  ellie    2441 Jan 6 12:34    dir1</span>
<span class="docEmphasis">drwxrwxrwx  2  ellie    2341 Jan 6 12:34    grades</span></pre>
<table cellSpacing="0" width="90%" border="1" align="center">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The output of the <span class="docEmphasis">ls</span> 
    command is piped to <span class="docEmphasis">grep.</span> All lines of 
    output that begin with a <span class="docEmphasis">d</span> are printed; 
    that is, all directories are printed.</td>
  </tr>
</table>

<h3 class="docSection1Title" id="ch03lev1sec4">3.4 <span class="docEmphasis">grep</span> with 
Options</h3>
<p class="docText">The <span class="docEmphasis">grep</span> command has a 
number of options that control its behavior. Not all versions of UNIX support 
exactly the same options, so be sure to check your man pages for a complete 
list.</p>
<pre>% <span class="docEmphStrong">cat datafile</span>
<span class="docEmphasis">northwest          NW   Charles Main      3.0    .98    3    34</span>
<span class="docEmphasis">western            WE   Sharon Gray       53     .97    5    23</span>
<span class="docEmphasis">southwest          SW   Lewis Dalsass     2.7    .8     2    18</span>
<span class="docEmphasis">southern           SO   Suan Chin         5.1    .95    4    15</span>
<span class="docEmphasis">southeast          SE   Patricia Hemenway 4.0    .7     4    17</span>
<span class="docEmphasis">eastern            EA   TB Savage         4.4    .84    5    20</span>
<span class="docEmphasis">northeast          NE   AM Main Jr.       5.1    .94    3    13</span>
<span class="docEmphasis">north              NO   Margot Weber      4.5    .89    5     9</span>
<span class="docEmphasis">central            CT   Ann Stephens      5.7    .94    5    13</span>
</pre>
<h5 id="ch03list23" class="docExampleTitle">Example 3.23 </h5>
<pre><span class="docEmphStrong">grep 杗 '^south' datafile</span>
<span class="docEmphasis">3:southwest      SW     Lewis Dalsass       2.7   .8    2   18</span>
<span class="docEmphasis">4:southern       SO     Suan Chin           5.1   .95   4   15</span>
<span class="docEmphasis">5:southeast      SE     Patricia Hemenway   4.0   .7    4   17</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The <span class="docEmphasis">杗</span> option precedes 
    each line with the number of the line where the pattern was found, followed 
    by the line.</td>
  </tr>
</table>
  </center>
</div>
<h5 id="ch03list24" class="docExampleTitle">Example 3.24 </h5>
<pre><span class="docEmphStrong">grep 杋 'pat' datafile</span>
<span class="docEmphasis">southeast        SE     Patricia Hemenway    4.0   .7    4    17</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The <span class="docEmphasis">杋</span> option turns off 
    case sensitivity. It does not matter if the expression
    <span class="docEmphasis">pat</span> contains any combination of upper- or 
    lowercase letters.</td>
  </tr>
</table>
  </center>
</div>
<h5 id="ch03list25" class="docExampleTitle">Example 3.25 </h5>
<pre><span class="docEmphStrong">grep 杤 'Suan Chin' datafile</span>
<span class="docEmphasis">northwest        NW     Charles Main         3.0  .98  3  34</span>
<span class="docEmphasis">western          WE     Sharon Gray          5.3  .97  5  23</span>
<span class="docEmphasis">southwest        SW     Lewis Dalsass        2.7  .8   2  18</span>
<span class="docEmphasis">southeast        SE     Patricia Hemenway    4.0  .7   4  17</span>
<span class="docEmphasis">eastern          EA     TB Savage            4.4  .84  5  20</span>
<span class="docEmphasis">northeast        NE     AM Main Jr.          5.1  .94  3  13</span>
<span class="docEmphasis">north            NO     Margot Weber         4.5  .89  5  9</span>
<span class="docEmphasis">central          CT     Ann Stephens         5.7  .94  5  13</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">Here, the <span class="docEmphasis">杤</span> option 
    prints all lines <span class="docEmphasis">not</span> containing the pattern
    <span class="docEmphasis">Suan Chin.</span> This option is used when 
    deleting a specific entry from the input file. To really remove the entry, 
    you would redirect the output of <span class="docEmphasis">grep</span> to a 
    temporary file, and then change the name of the temporary file back to the 
    name of the original file as shown here:</p>
    <pre>grep -v 'Suan Chin' datafile &gt; temp
mv temp datafile
</pre>
    <p class="docText">Remember that you must use a temporary file when 
    redirecting the output from <span class="docEmphasis">datafile.</span> If 
    you redirect from <span class="docEmphasis">datafile</span> to
    <span class="docEmphasis">datafile,</span> the shell will &quot;clobber&quot; the
    <span class="docEmphasis">datafile.</span> (See &quot;Redirection&quot; on page 16.)</td>
  </tr>
</table>
  </center>
</div>
<pre>% <span class="docEmphStrong">cat datafile</span>
<span class="docEmphasis">northwest          NW    Charles Main       3.0    .98    3    34</span>
<span class="docEmphasis">western            WE    Sharon Gray        53     .97    5    23</span>
<span class="docEmphasis">southwest          SW    Lewis Dalsass      2.7    .8     2    18</span>
<span class="docEmphasis">southern           SO    Suan Chin          5.1    .95    4    15</span>
<span class="docEmphasis">southeast          SE    Patricia Hemenway  4.0    .7     4    17</span>
<span class="docEmphasis">eastern            EA    TB Savage          4.4    .84    5    20</span>
<span class="docEmphasis">northeast          NE    AM Main Jr.        5.1    .94    3    13</span>
<span class="docEmphasis">north              NO    Margot Weber       4.5    .89    5     9</span>
<span class="docEmphasis">central            CT    Ann Stephens       5.7    .94    5    13</span>
</pre>
<h5 id="ch03list26" class="docExampleTitle">Example 3.26 </h5>
<pre><span class="docEmphStrong">grep 杔 'SE'  *</span>
<span class="docEmphasis">datafile</span>
<span class="docEmphasis">datebook</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The <span class="docEmphasis">杔</span> option causes
    <span class="docEmphasis">grep</span> to print out only the filenames where 
    the pattern is found instead of the line of text</td>
  </tr>
</table>
  </center>
</div>
<h5 id="ch03list27" class="docExampleTitle">Example 3.27 </h5>
<pre><span class="docEmphStrong">grep 朿 'west' datafile</span>
<span class="docEmphasis">3</span>
</pre>
<div align="center">
  <center>
<table cellSpacing="0" width="90%" border="1" style="border-collapse: collapse" bordercolor="#111111" cellpadding="5">
  <tr>
    <td>
    <h2 class="docSidebarTitle">EXPLANATION</h2>
    <p class="docText">The 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美国产高清| 色哟哟精品一区| 成人精品视频一区| 99久久久无码国产精品| 日韩综合小视频| 日韩av一级电影| 亚洲福中文字幕伊人影院| 亚洲精品日韩专区silk | 日韩在线卡一卡二| 国产一区二区三区四区五区美女| 国产91综合网| 一本大道久久a久久精二百| 欧美亚洲综合在线| 亚洲精品一区二区三区四区高清| 久久这里只有精品首页| 欧美日韩第一区日日骚| 91免费国产在线| 欧美一区二区视频观看视频| 欧美极品xxx| 一区二区三区免费| 国产一区二区三区美女| 欧美性受极品xxxx喷水| 精品国产亚洲在线| 亚洲欧美日韩国产另类专区| 久久超碰97中文字幕| 日本精品视频一区二区三区| 日韩免费视频线观看| 国产精品久久久久久久久动漫 | 久久一二三国产| 综合婷婷亚洲小说| 国产精品亚洲午夜一区二区三区| 色播五月激情综合网| 国产欧美精品一区aⅴ影院| 亚洲成人www| a级高清视频欧美日韩| 欧美视频三区在线播放| 亚洲精品亚洲人成人网| av资源网一区| 国产无人区一区二区三区| 婷婷夜色潮精品综合在线| 欧美四级电影在线观看| 成人欧美一区二区三区小说| 国产一区二区三区四区在线观看| 在线观看三级视频欧美| 亚洲日本护士毛茸茸| 精品一区二区三区欧美| 91精品国产入口| 性久久久久久久久| 8v天堂国产在线一区二区| 午夜视频在线观看一区二区| 欧美写真视频网站| 一区二区免费视频| 欧美一区二区三区播放老司机| 亚洲成人三级小说| 欧美精品久久99| 加勒比av一区二区| 中文久久乱码一区二区| 色综合久久中文综合久久牛| 亚洲电影欧美电影有声小说| 日韩欧美www| 国产不卡视频一区| 亚洲精品精品亚洲| 日韩一区二区在线看片| 久久国产精品99久久人人澡| 久久免费看少妇高潮| 99re视频这里只有精品| 日本成人在线一区| 久久久久久久久久久久电影| 成人高清视频在线观看| 亚洲1区2区3区4区| 精品国产成人在线影院 | 国模套图日韩精品一区二区| 亚洲欧美中日韩| 91精品国产手机| 91视频一区二区| 国产原创一区二区三区| 亚洲综合激情小说| 中文字幕av一区二区三区免费看| 99re66热这里只有精品3直播| 五月婷婷激情综合| 中文字幕精品三区| 精品精品国产高清一毛片一天堂| 国产高清亚洲一区| 日本在线观看不卡视频| 亚洲欧美日韩国产另类专区| 精品久久久久久综合日本欧美| 欧美午夜寂寞影院| 91日韩在线专区| 国产成人精品综合在线观看| 日本在线不卡视频| 亚洲成人在线免费| 国产精品久久精品日日| 久久久99精品免费观看| 欧美日韩在线电影| 欧美日韩视频在线一区二区 | 亚洲色图另类专区| 国产目拍亚洲精品99久久精品| 欧美一区二区精品| 日韩一区二区三区四区 | 中文字幕一区二区不卡| 久久久高清一区二区三区| 日韩一级二级三级精品视频| 日韩一区二区视频| 日韩美女视频在线| 亚洲精品一区二区在线观看| 国产婷婷一区二区| 国产精品国产精品国产专区不片 | 91福利视频在线| 欧美亚洲综合在线| 欧美成人性福生活免费看| 精品久久久久99| 亚洲欧美日韩在线不卡| 亚洲美女屁股眼交3| 亚洲国产毛片aaaaa无费看 | 欧美性猛交一区二区三区精品| 欧美日韩一区二区电影| 日韩视频中午一区| 欧美国产日本韩| 一区二区三区精品在线观看| 婷婷激情综合网| 韩日精品视频一区| 成人一区二区三区中文字幕| 91久久精品一区二区| 日韩欧美电影一区| 最新不卡av在线| 美女视频免费一区| 91蝌蚪porny九色| 91精品国产一区二区人妖| 久久久99久久精品欧美| 亚洲线精品一区二区三区八戒| 久久国产精品无码网站| 91麻豆国产香蕉久久精品| 欧美日韩极品在线观看一区| 一区二区视频在线| 色先锋aa成人| 亚洲成人免费观看| 欧美三级中文字幕在线观看| 亚洲激情中文1区| 91久久精品一区二区| 一区二区理论电影在线观看| 欧美午夜精品久久久久久孕妇 | 成人国产精品免费观看动漫| 亚洲图片另类小说| 91黄色激情网站| 日韩av中文在线观看| 欧美一区二区精品| 国产精品毛片a∨一区二区三区| 亚洲成年人网站在线观看| 91免费视频网| 亚洲欧美日韩人成在线播放| 97超碰欧美中文字幕| 中文字幕一区二区不卡 | 国产a视频精品免费观看| 久久久一区二区| 成人久久久精品乱码一区二区三区| 欧美精品一区二区久久久| 看国产成人h片视频| 久久嫩草精品久久久精品| 国产精品 欧美精品| 亚洲欧洲精品一区二区三区| 色综合视频在线观看| 亚洲制服丝袜在线| 日韩一级视频免费观看在线| 黄色日韩网站视频| 国产精品国产三级国产aⅴ中文| 97久久精品人人做人人爽| 一区二区在线观看视频| 8x8x8国产精品| 国产精品亚洲综合一区在线观看| 亚洲天堂网中文字| 欧美日本国产视频| 国产一区 二区| 一区二区成人在线视频 | 亚洲欧洲精品成人久久奇米网| 91麻豆免费看片| 精品一区二区在线免费观看| 国产精品久久久久久妇女6080| 欧美色爱综合网| 国产精品影视在线| 亚洲第一激情av| 久久亚洲捆绑美女| 欧美日韩国产高清一区二区三区 | 91视视频在线观看入口直接观看www | 视频一区二区三区在线| 亚洲激情中文1区| 国产欧美日韩视频一区二区 | 一区二区激情小说| 色诱亚洲精品久久久久久| 欧美国产精品v| 精品一区二区三区免费视频| 欧美日韩日日摸| 午夜婷婷国产麻豆精品| 欧美一区二区高清| 99视频精品免费视频| 美女视频网站黄色亚洲| 亚洲欧美日韩综合aⅴ视频| 精品欧美一区二区在线观看| 欧美视频一区在线| 成人av集中营| 成人网在线播放|