linux help 如何解讀 - Linux

Madame avatar
By Madame
at 2018-03-31T18:27

Table of Contents

如下範例 小弟 當閱讀指令說明時 如何理解對應順序?例如下面指令 switches 對應的是

那些範圍?


Usage: /home/linux/myperl/bin/perl [switches] [--] [programfile] [arguments]
-0[octal] specify record separator (\0, if no argument)
-a autosplit mode with -n or -p (splits $_ into @F)
-C[number/list] enables the listed Unicode features
-c check syntax only (runs BEGIN and CHECK blocks)
-d[:debugger] run program under debugger
-D[number/list] set debugging flags (argument is a bit mask or alphabets)
-e program one line of program (several -e's allowed, omit
programfile)
-E program like -e, but enables all optional features
-f don't do $sitelib/sitecustomize.pl at startup
-F/pattern/ split() pattern for -a switch (//'s are optional)
-i[extension] edit <> files in place (makes backup if extension
supplied)
-Idirectory specify @INC/#include directory (several -I's allowed)
-l[octal] enable line ending processing, specifies line terminator
-[mM][-]module execute "use/no module..." before executing program
-n assume "while (<>) { ... }" loop around program
-p assume loop like -n but print line also, like sed
-s enable rudimentary parsing for switches after programfile
-S look for programfile using PATH environment variable
-t enable tainting warnings
-T enable tainting checks
-u dump core after parsing program
-U allow unsafe operations
-v print version, patchlevel and license
-V[:variable] print configuration summary (or a single Config.pm
variable)
-w enable many useful warnings
-W enable all warnings
-x[directory] ignore text before #!perl line (optionally cd to
directory)
-X disable all warnings

--
Tags: Linux

All Comments

Quanna avatar
By Quanna
at 2018-04-05T02:56
下面那些都是,arguments 是喂給 programfile 的。--是用
來區分名字跟 switch 一樣的 programfile
Charlie avatar
By Charlie
at 2018-04-08T17:25
不然咧
Gary avatar
By Gary
at 2018-04-09T12:59
找一些簡單的指令來看 何必沒事看perl 看到會破
Lydia avatar
By Lydia
at 2018-04-11T22:38
perl 從看參數到能下有用的指令會有一些距離 XD
可先看 grep 之類的,比較親民
Joseph avatar
By Joseph
at 2018-04-14T08:46
man man開始

Arch桌面環境設定

Quanna avatar
By Quanna
at 2018-03-29T15:13
※ 引述《chenjoe (MAKOTO)》之銘言: : 標題: Re: [問題] Arch桌面環境設定 : 時間: Wed Mar 28 06:19:19 2018 : : ※ 引述《brli7848 (星の妄想)》之銘言: : : 進入tty沒問題表示agettyat.service有跑起來 : : 你看 ...

NAS(QNAP TS-212)上架git server

Dorothy avatar
By Dorothy
at 2018-03-28T15:28
如題 想在NAS(TS-212 fw:4.3.3)上架設git server 打給QNAP客服說app center沒有container station 然後optware ipkg好像也不支援了 嘗試用過wget直接抓git壓縮檔下來 在make的時候說not found 就想說wget抓mak ...

請問GNOME和XFCE可以把任務欄改到下面嗎

Poppy avatar
By Poppy
at 2018-03-28T10:45
請問GNOME和XFCE可以把任務欄改到下面嗎? 像WINDOWS那樣 KDE用過但是感覺卡卡的 - ...

Arch桌面環境設定

Iris avatar
By Iris
at 2018-03-28T06:19
※ 引述《brli7848 (星の妄想)》之銘言: : 進入tty沒問題表示agettyat.service有跑起來 : 你看到的tty是解析度高的嗎?(通常字偏小) 是啊,不管是進LiveCD還是灌好後進硬碟系統字都好小,不知道為什麼 : 另外一方面,Arch 強調原汁原味,所以你可以看到在 : /us ...

DVD區碼問題

Hedwig avatar
By Hedwig
at 2018-03-27T22:19
首次發文,剛剛那篇文章沒打好,現在重貼一則。文章用詞不精準請見諒。 系統:ubuntu 17.10 我買了日本的DVD(區碼2)。筆電的光碟機不能播(可以播一般的台灣DVD),所以拆了一台老筆電的光碟機,改成usb外接式。用了 regionset 更改它的讀取區碼至 2,也顯示更改成功,但目前仍不能正確地讀取 ...