Lrwxrwxrwx 1 root root 10 rc5.d -> rc.d/rc5.d Lrwxrwxrwx 1 root root 10 rc4.d -> rc.d/rc4.d Lrwxrwxrwx 1 root root 10 rc3.d -> rc.d/rc3.d Lrwxrwxrwx 1 root root 10 rc2.d -> rc.d/rc2.d Lrwxrwxrwx 1 root root 10 rc1.d -> rc.d/rc1.d Lrwxrwxrwx 1 root root 10 rc0.d -> rc.d/rc0.d The following example matches all lines that contain a number in the range 1 to 6, followed by any single character, followed by a “d”. Search for a pattern containing a range of characters The following example matches all lines in the ps -ef output that end in bash: ~]$ ps -ef | grep "sh$" ![]() Search for a pattern at the end of a line The following example matches all lines in the ps -ef output that start with the string ptr: ~]$ ps -ef | grep "^ptr" ![]() Search for a pattern at the beginning of a line exit-with-session /etc/X11/xinit/Xclients" The following example matches all lines in the ps -ef output that have sh anywhere in them: ~]$ ps -ef | grep "sh"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |