argv

argv

 英

  • 網絡命令行參數;參數列表;命令行參數排列(Argument Values)

例句

This list is similar to the argv list used in common C programs and defines the application (first element of the array) and argument list.

列表普通C程序argv列表類似定義應用程序數組第一個元素參數列表

The outer foreach loop iterates over all of the command-line parameters in the @ARGV array looking for a trigger message.

外層foreach循環@ARGV數組所有命令參數查找觸發器消息

This loop iterates over the array, ARGV, which is the remaining set of arguments passed to the script on the command line.

循環數組ARGV命令傳遞腳本余下參數集合

In my opinion the easiest solution is to parse @ARGV manually as shown in the following listing.

看來簡單解決方案手工解析@ARGV,

In particular, argv is an array of arguments to the program, the first argument being the program itself.

特別是argv程序參數數組第一參數程序本身

Internally, Perl (similar to C) passes arguments to the script it interprets in the @ARGV array.

內部Perl類似C參數傳遞@ARGV數組解釋腳本

The magic of the -i switch is that it replaces each file in @ARGV with the version produced by the script's output on that file.

i開關神奇在于@ARGV每個文件腳本文件輸出產生文件版本進行替代

When the script is run on the command line, this gives C-style access to the command line parameters.

腳本運行命令方式argv變量傳遞程序C語言樣式命令參數

The code in Listing 2 first looks for a parameter passed in the $argv array.

清單2代碼首先$argv數組查找一個傳遞進來參數

For brevity, this script processes only the first extra argument, argv[1].

為了簡單起見這個腳本處理第一個額外參數argv[1]。

It simply emits the contents of the argv vector.

只簡單打印argv向量內容

Next, define your argument list, called argv.

下一步定義參數列表使argv調用

For each file given on the command line (in @ARGV), I get the ID3 tag and create it if necessary.

命令(@ARGV文件得到ID3標簽如果需要創建

BusyBox then invokes the internal utility as defined by argv[0].

BusyBox然后可以通過argv[0]調用內部工具

In this case, you use a range to index the sys. argv list.

這個示例使用range索引sys.argv列表

Others are purely stylistic convention (args, not argv; i++ instead of ++i).

其他純粹風格慣例argsargv;i++++i)。

Index 0 of argv is the program name that was invoked from the command line.

argv索引0命令調用程序

The variable CMD was set to "cat " +sys. argv[2].

變量CMD設置cat”+sys.argv[2]。

Script 6. pl recognizes UTF-8 data in @ARGV (6_out. txt shows a sample run of 6. pl).

腳本6.pl可以識別@ARGVUTF-8數據(6_out.txt顯示一個運行6.pl樣例輸出)。

The first argv element (0) is the program name (that is, echo. py).

第一argv元素(0)程序echo.py)。

For example, you can access parameters passed to scripts on the command line using the sys. argv variable.

例如可以使用sys.argv變量命令訪問傳遞腳本參數

Note that in Listing 3, the same requirements exist to set up and make the call (such as initializing the argv and envp arrays).

注意清單3有著同樣安裝調用例如初始化argvenvp數組需求

熱門查詢