2,567 reputation
416
bio website
location The Netherlands
age
visits member for 1 year, 8 months
seen yesterday

“The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.”

"Daniel J. Boorstin


1d
awarded  Nice Answer
1d
comment Simple flag based comparison in Linux
That is because the variable FLAG_Control=false is set an yields always to true. The false there is misleading. It is not a boolean value as you are used to other programming languages. false is just a value that initializes FLAG_Control variable and sets it to true. FLAG_Control= which is not initialized yields to false.
2d
reviewed Edit What variables are valid within /etc/default/useradd file?
2d
revised What variables are valid within /etc/default/useradd file?
Fixed formatting and capitals
2d
awarded  Explainer
2d
comment Not able to rename root user of MySQL
Well, rename user command is introduced after mysql 5.0.2 version. You can check your version from the terminal using mysql -u newroot -p -e 'select version();' I personally believe that this is the best practice to rename root user. Thus, first creating a temp user and then rename the root user from there.
Mar
24
comment How to remove a particular character after a specific word
@don_crissti. I see. I might have been reading outdated tutorials.
Mar
24
comment How to remove a particular character after a specific word
@don_crissti the -E is the flag to enable Extended regular expressions on *BSD and Mac systems. Probably -r will be more desirable in this case since it will be compatible with GNU sed. FreeBSD did also add the -r option now to remain compatible with GNU sed.
Mar
24
revised How to remove a particular character after a specific word
Writing awk solution which involves different regex patterns
Mar
24
comment How to remove a particular character after a specific word
To those who are downvoting the answer. Please write a comment at least to demonstrate the flaws in the answer. This way we all can provide better answers in the future. It could help me a lot to improve my writing and or explanation! Thanks!
Mar
24
reviewed Approve Adding 1 string to end of file, Even when ran multiple times to change MD5
Mar
24
answered How to remove a particular character after a specific word
Mar
24
comment How to remove a particular character after a specific word
You can do it using awk. For example: echo IBM, Inc.:APP-VM-Core:4.4.2.0:04, | awk '/IBM/{sub(/,/,"")}1'
Mar
24
comment can't split terminal using screen
I think it's worth to mention that by detaching the screen, splits won't persist. You need to create the split each time you enter the screen session.
Mar
24
revised Not able to rename root user of MySQL
added 2 characters in body
Mar
24
answered Not able to rename root user of MySQL
Mar
20
reviewed Approve Show IP addresses of the last 20 users to login to my server
Mar
20
revised SED command to format text file
Adding explanation for the sake of education
Mar
20
reviewed Approve SED command to format text file
Mar
20
comment SED command to format text file
I posted the answer which removes leading whitespaces.