Linux introduction: Difference between revisions

Jump to navigation Jump to search
Line 124: Line 124:
the text "number 10 » or "number 11", etc. with any number between 10 and 29,
the text "number 10 » or "number 11", etc. with any number between 10 and 29,
the following command can be used:
the following command can be used:
{{Commande|grep 'number [1-2][0-9]' file
{{Command|grep 'number [1-2][0-9]' file
}}
}}
A regular expression must be used for the search text. To learn more about regular expressions,
A regular expression must be used for the search text. To learn more about regular expressions,
look at the following sites:<br />
look at the following sites:<br />
[http://www.cyberciti.biz/faq/grep-regular-expressions/ A very complete list of regular expressions] <br />
[http://www.cyberciti.biz/faq/grep-regular-expressions/ A very complete list of regular expressions] <br />
cc_staff
1,486

edits

Navigation menu