Ẽ Ẽm Thư New member Sep 19, 2021 #1 Which of the following pattern is used for extracting a substring using expr? A. /( ) B. \(. .\) C. . .\) D. \\(
Which of the following pattern is used for extracting a substring using expr? A. /( ) B. \(. .\) C. . .\) D. \\(
Á Ánh Dương New member Sep 19, 2021 #2 Answer: b Explanation: expr can extract a substring enclosed by the escaped characters \ ( and \). For example, to extract ‘03’ from the string 2003 use the following command: Code: $ str= 2003 $ expr “$str” : ‘. .\(. .\)’ 03 Upvote 0 Downvote
Answer: b Explanation: expr can extract a substring enclosed by the escaped characters \ ( and \). For example, to extract ‘03’ from the string 2003 use the following command: Code: $ str= 2003 $ expr “$str” : ‘. .\(. .\)’ 03