請問這兩行指令意思 - Linux

By Rosalind
at 2010-10-28T04:24
at 2010-10-28T04:24
Table of Contents
請問這兩行的意思是??
cat Report2.txt | cut -c3- | sed '1 d' | tail -1 > result.txt
if ! grep "Script" Report.txt >/dev/null 2>&1
=>我個人推測...第一行意思應該是...
開啟Report2.txt..並且擷取第三行...在刪除第一行..在加入最後一行..
之後存成result.txt
=>第二行我推測應該是...
如果在Report.txt擷取不到"Script",存到/dev/null...
在另外請問兩個問題:
cut -c3- 這邊指的是擷取第三行嗎??
我看過cut -c 1-10 是擷取第1~10個字元...但是沒看過上面描述
>/dev/null 2>&1"
這應該要怎麼解釋呢...
請網友幫忙解惑了..謝謝
--
Tags:
Linux
All Comments

By Barb Cronin
at 2010-10-29T15:17
at 2010-10-29T15:17

By Lucy
at 2010-10-31T18:52
at 2010-10-31T18:52

By Elvira
at 2010-11-04T07:01
at 2010-11-04T07:01

By Iris
at 2010-11-08T04:12
at 2010-11-08T04:12

By Sandy
at 2010-11-12T06:25
at 2010-11-12T06:25

By Susan
at 2010-11-12T13:23
at 2010-11-12T13:23

By Carol
at 2010-11-13T02:18
at 2010-11-13T02:18

By Valerie
at 2010-11-13T05:27
at 2010-11-13T05:27

By Eartha
at 2010-11-17T05:50
at 2010-11-17T05:50

By Charlotte
at 2010-11-18T04:35
at 2010-11-18T04:35

By Steve
at 2010-11-21T01:26
at 2010-11-21T01:26
Related Posts
rhce考試

By Thomas
at 2010-10-28T02:44
at 2010-10-28T02:44
lazyscripts無動靜

By Tom
at 2010-10-28T02:37
at 2010-10-28T02:37
ubuntu的容易上手度?

By Emma
at 2010-10-27T23:46
at 2010-10-27T23:46
UBUNTU正體中文站....

By William
at 2010-10-27T23:20
at 2010-10-27T23:20
ubuntu9.10網路設定?真的很奇怪 > <!!

By Genevieve
at 2010-10-27T18:47
at 2010-10-27T18:47