Reputation
3,207
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 6 21
Impact
~323k people reached

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.
Mar
20
answered SED command to format text file
Mar
20
comment SED command to format text file
This is a job that is more suitable to be done by awk. Off top of my mind awk -F';' 'BEGIN{OFS=",";} NR>1{ print $2,$3,"DATABASE"}' filename
Mar
19
reviewed Approve Capturing key input from events device and mapping it (toggle TouchPad key is unmapped)
Mar
19
reviewed Approve Runlevel3 (systemd) - target on Opensuse 13.2 starts GUI
Mar
19
comment BASH getopts problem
Well when it comes to quoting, you should always quote in bash unless you really really know what you are doing: "Double quote" every literal that contains spaces/metacharacters and every expansion: "$var", "$(command "$var")", "${array[@]}", "a & b". Use 'single quotes' for code or literal $'s: 'Costs $5 US', ssh host 'echo "$HOSTNAME"'. See mywiki.wooledge.org/Quotes , mywiki.wooledge.org/Arguments and wiki.bash-hackers.org/syntax/words
Mar
19
comment BASH getopts problem
Well I'm not really sure if I understand the purpose though. Feel free to improve the answer and provide some examples which demonstrates the caveats
Mar
19
comment BASH getopts problem
By point 7, I mean that moznostm= seems to be pointless. If it was a variable holding an integer, then there are situations a variable should be initialized as 0 so you could start counting or do other arithmetic calculations. In the setting as it is now, I don't see how moznostm= is going to help.
Mar
18
revised BASH getopts problem
added 93 characters in body