Modify grep E localhost systemd messages to also show the li
Modify grep -E \"localhost systemd:\" messages to also show the line numbers.
Write down the command.
Solution
The -n option is used with grep to show the line number.
So, to display the line numbers also, the command:
grep -E \"localhost systemd:\" messages
could be modified as:
grep -E -n \"localhost systemd:\" messages
