如果系统中没有Perl,则可以使用常规的查找命令。
You can use the regular find command if you don't have Perl on your system.
查找命令可以帮助你查找文件中的任何一个单词、短语或数字。
The search command allows you to find any word, phrase, or number that exists in your document.
来获取一份命令列表,和Get-Help来查找命令的帮助。
Use Get-Command to get a list of commands and Get-Help to find out help on the commands.
查找和替换:查找命令允许在文档中寻找任何字符、词或或短语。
Search hand Replace:A search or find command allows you to locate any character, word, orphrase in your document.
如果用户的PATH被设置为A:B:C:D,那么shell将首先尝试在目录a中查找命令。
If a user's PATH is set to a: B: c: d, the shell first attempts to find the command in directory A. If it isn't found there, the shell moves on to look in directory B and so on.
清单1提供了一个完整的示例,该示例将在特定文件中查找从命令行作为输入而传入的最长单词。
Listing 1 provides a complete example by looking for the longest word in a particular file passed in from the command line as input.
它接受命令行参数确定哪些服务查找用户并计算统计数据。
It takes in command line parameters to determine what services to find users and calculate stats.
这项任务可以通过只查找实际的命令行参数所需的字段信息来处理,但是我反而选择将查找和使用分开。
This task could be handled by just looking up the field information as needed for the actual command line arguments, but I've instead made a choice to separate the lookup from the usage.
例如,下面的命令将在您的home目录中查找所有包含单词monthlyReport的文本文件。
For example, this command finds all of the text documents in your home directory that contain the words Monthly report.
清单7显示了如何使用find命令来查找大于10MB的文件。
Listing 7 shows how to use the find command to find files larger than 10mb.
作为一个实践示例,您可以继续前面的示例,使用GRUB的find命令查找配置文件。
As a practical example, you might continue with the previous example and use GRUB's find command to find configuration files.
参考您的Linux分发版文档以查找在您的实现不包含groupadd命令时如何添加组。
Consult your Linux distribution's documentation to find out how to add the group if the groupadd command is not included in your implementation.
find标准Perl模块本来可以代替Unix find命令用于进行文件查找,但是脚本也会随之变得太大而不再是一行程序了。
The file: : find standard Perl module could have been used to do the file find instead of the Unix find command, but then the script would have probably been too large to be a one-liner.
这是通过运行两个find命令来完成的,它们会查找具有之前的UID和GID的所有文件。
This is done by running two find commands which search for all files with the previous UID and GID.
cleanup例程将展示如何使用ps命令查找脚本进程的子进程。
The cleanup routine shows how to use the ps command to find the children of your script process.
当执行一个命令时,shell必须读取用户的PATH环境变量来查找可执行文件。
When a command is executed, the shell must read the user's PATH environment variable to find the executable.
举一个简单的例子来说,要查找包含“welcoming”单词的行,最好的方法是使用下面的命令行。
As a simple example, to find the lines that have the word "welcoming", the best approach would be to use the following command line.
pl的这个部分迭代命令行参数,查找TMC2结构。
This section of ChompQ.pl iterates over command line arguments looking for TMC2 structures.
nl_langinfo (CODESET)函数也是由localecharmap命令调用,从而查找当前语言环境指定的编码名称。
The nl_langinfo (CODESET) function is also what the locale charmap command calls to find the name of the encoding specified by the current locale.
要查找SunOneLDAP用户的DN,您可以在Solaris中使用 ldaplist命令。
To find the DN of the SunOne LDAP users, you can use the ldaplist command on Solaris.
当使用mksecldap命令配置LDAP客户端时,将查找基本DN并将其保存到 /etc/security/ldap/ldap.cfg文件。
The mksecldap command, when used to configure an LDAP client, will find the base DN and will save it to the /etc/security/ldap/ldap.cfg file.
第一个命令查找Samba进程列表。
Get - Command可以带一些参数来帮助你来查找你需要的命令。
Get-Command takes some parameters to help you find the commands you need. For example, if you're looking for commands that have the word Format in them, you can type.
由于grep会查找这个文件中的某个匹配项,因此这个命令会查找到“root”和“operator”这两项。
Because it looks for a match anywhere in the file, grep finds entries for both "root" and "operator".
查找Linux计算机上的缓存目录,使用适当的命令查找mkdir所需的库。
Locate the caching directory on your Linux computer, and use the appropriate command to find a library that mkdir needs.
该命令将搜索整个home目录 (find /home/joe)以查找所有的常规文件 (-typef) 中具有后缀 .txt 的文件,然后运行grep 命令来搜索字符串MonthlyReport。
The command searches your entire home directory (find /home/joe) to find all regular files (-type f) with the suffix .txt, and then runs the grep command to search for the string Monthly Report.
如果输入一个命令名,那么bash将在您的路径(path)中查找该命令,路径就是指path环境变量中以冒号分隔的目录列表。
If you type a command name, then bash looks for that command on your path, which is a colon-separated list of directories in the path environment variable.
我们需要用于该程序的命令行,以便查找 ,因此,要确保包含所期望的大量命令行参数
We want the command line for the program to be lookup , so we make sure that we have the desired number of command line arguments
其中一个事Get - Help,你可以使用这个命令来查找某个命令的帮助。
One command is Get-Help. You can use this to find out help on a particular command.
要查找CD/DVDROM驱动器的SCSI名字,可以使用lsscsi命令显示所有的 SCSI设备,并使用grep来查找 cd/dvd
To find the SCSI device name for the CD/DVD ROM drive, use the lsscsi command to list all SCSI devices, and use grep to find cd/dvd
应用推荐