Created
June 4, 2019 11:27
-
-
Save GeoffWilliams/e2923d046dd36d3983f755bebf76b7f6 to your computer and use it in GitHub Desktop.
read some stuff in and use awk to selectively edit inline and normalise spaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk ' | |
{if ($0 ~ /^GRUB_CMDLINE_LINUX=/) {gsub("transparent_hugepage=[[:alnum:]]*[[:space:]]?", "", $0) ; gsub("[[:space:]]?\"$", " transparent_hugepage=never\""); print $0 } else {print}} | |
' < brett.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment