Vim lazy/non greedy search
change your * to \{-}: #bad (.*?) #good (.\{-})
change your * to \{-}: #bad (.*?) #good (.\{-})
If you need to automate a GUI app, like you would script a CLI app with expect, use xdotool. It should be in your repo. What you can do for…
Via reddit: -R allows ANSI colors (and other ANSI features) -S allows horizontal scrolling (I don't use this one with query-logs though) -X Leaves the output on the screen after…
From http://www.smallo.ruhr.de/award.html , dome things to improve in your (and my) scripts ;). Anything that looks like something | grep '..*' | wc -l can usually be rewritten like something…
Note to self; if I have changed /etc/sysconfig/grub, then run grub2-mkconfig -o /boot/grub2/grub.cfg For uefi: grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
“No memory reserved for crash kernel” on RH7 Increase RAM to 2GB+. Also make sure crashkernel=auto is set in your cmdline.