11,519 reputation
2654
bio website
location
age
visits member for 2 years, 8 months
seen 10 hours ago

1d
comment replace lines in a text with matching text
Look more carefully on patterns to replace. ps. downvote is not from me.
1d
comment replace lines in a text with matching text
this will not work. OP needs to apply only for strigns with everyone. And obviously not only for the second line.
1d
reviewed Approve suggested edit on replace lines in a text with matching text
2d
reviewed Approve suggested edit on How can I test if a variable is empty or contains only spaces?
2d
reviewed Approve suggested edit on Preserve formatting when command output is sent to a variable?
Jul
28
comment waiting for network in a bash script
no need to redirect grep output to /dev/null. Use -q option instead. And also I don't thing grepping ifconfig is a good idea. Why not to use ping instead?
Jul
28
revised Combining sed statements
typo and formatting
Jul
28
comment Combining sed statements
Note that it will not work if OP has 3 or more lines with numbers. If it's just like in example, then it's fine.
Jul
28
answered Combining sed statements
Jul
28
reviewed Approve suggested edit on Is `-` used only with cd?
Jul
21
comment sed regex issue
Do not redirect file to itself. In the end you may stay with an empty file. Use sed -i (only for gnu sed) instead or separate temporary file. Also you can use \s instead of [[:space:]] as it also includes \t and all other whitespaces.
Jul
21
answered Print last element of each row
Jul
17
comment Excessively high disk usage freezes my server
Logs? Did you check logs? like /var/log/messages or /var/log/dmesg.0 and so on?
Jul
3
accepted force ssh to change dir after login based on config
Jul
3
comment force ssh to change dir after login based on config
Nope, unfortunately ports usually are the same for different projects on one machine. Ports may differ only between machines.
Jul
3
asked force ssh to change dir after login based on config
Jul
2
awarded  Curious
Jun
18
awarded  Constituent
Jun
9
awarded  Caucus
May
30
awarded  Enlightened