To make grep return only lines which contains digits, we would use the command:.Grep and regular expressions is a topic that can cover a whole book, but it would be shame to not show at least a couple examples for grep and regular expressions. kernel: mem auto-init: stack:off, heap alloc:on, heap free:off kernel: Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) kernel: Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) kernel: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.8.0-59-generic root=UUID=a80ad9d4-90ff-4903-b34d-ca70d82762ed ro quiet splash kernel: Built 1 zonelists, mobility grouping on. B3 ( display 3 lines before match ) and -A3 ( display 3 lines after match ) will give your output more context.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |