linux正则表达式函数式
This section contains Aptitude Questions and Answers on Linux Regular Expressions.
本节包含有关Linux正则表达式的 Aptitude问答。
The regular expressions are strings that are used for pattern matching in some Linux commands.
The regular expressions are also known as a regex.
The regular expressions use some characters that each has a different meaning.
Regular expressions can only be used in the Linux commands.
Options:
Correct answer: 3
A, B, and C
Statements A, B, and C are correct about regular expressions.
正则表达式是在某些Linux命令中用于模式匹配的字符串。
正则表达式也称为正则表达式。
正则表达式使用一些具有不同含义的字符。
正则表达式只能在Linux命令中使用。
选项:
正确答案:3
A,B和C
语句A,B和C关于正则表达式是正确的。
grep
sed
rename
bash
Options:
Correct answer: 4
A, B, C, and D
All given commands are used with regular expressions in the Linux operating system.
grep
sed
改名
重击
选项:
正确答案:4
A,B,C和D
在Linux操作系统中,所有给定命令都与正则表达式一起使用。
Basic Regular Expression
Extended Regular Expression
Crond Regular Expression
Perl Regular Expression
Options:
Correct answer: 2
A, B, and D
Options A, B, and D are the correct types of regular expressions used in the Linux operating system.
基本正则表达式
扩展正则表达式
Crond正则表达式
Perl正则表达式
选项:
正确答案:2
A,B和D
选项A,B和D是Linux操作系统中使用的正确正则表达式类型。
Correct answer: 2
-G
The option -G is used for a basic regular expression in the grep command.
Correct answer: 3
[]
The [] is used to match any set of characters from the specified file in the grep command.
$
?
_
+
Options:
Correct answer: 4
A, B, C, and D
All given symbols are used for regular expressions.
Correct answer: 2
?
The question mark (?) is used to match exactly one character.
Correct answer: 4
{N,}
Correct answer: 2
\
The backward slash (\) is used to represent the group of characters.
Correct answer: 2
()
The parentheses are used to group regular expressions.
Correct answer: 4
\b
The backslash b (\b) is used to match the empty string at the edge of a word.
Correct answer: 4
\B
The backslash B (\B) is used to match the empty string if it is not at the edge of a word.
Correct answer: 1
grep "ABC[0-9]" <filename>
The first option is correct.
正确答案:1
grep“ ABC [0-9]” <文件名>
第一个选项是正确的。
Correct answer: 1
Yes
Yes, we can use regular expressions with awk command.
Correct answer: 1
ls –l | grep "^d"
The 1st command is correct.
正确答案:1
ls –l | grep“ ^ d”
第一个命令是正确的。
Correct answer: 4
rename 's/text/txt' *
正确答案:4
重命名's / text / txt'*
Correct answer: 1
echo inclusion | sed 's/in/ex'
The 1st command is correct to replace the specific word.
正确答案:1
回声包含| sed's / in / ex'
第一个命令正确地替换了特定的单词。
The double ampersands (&&) are used in regular expression for deleting the specified string.
The double ampersands (&&) are used in regular expression for replacing the specified string.
The double ampersands (&&) are used in regular expression for searching the specified string.
Correct answer: 3
The double ampersands (&&) are used in regular expression for searching the specified string.
正确答案:3
双与号(&&)在正则表达式中用于搜索指定的字符串。
Correct answer: 1
\%
The \< is used to match the empty string at the beginning of a word.
Correct answer: 1
Yes
Yes, we can use regular expressions in VI editor.
翻译自: https://www.includehelp.com/linux/regular-expressions-aptitude-questions-and-answers.aspx
linux正则表达式函数式