19,077 reputation
23972
bio website
location United States
age
visits member for 3 years
seen 9 hours ago

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


May
11
revised Passing a bash command-line argument containing a dot
added 1 characters in body
May
11
answered Passing a bash command-line argument containing a dot
May
10
comment Searching a file & excluding lines with a specified string
I'm not entirely sure what you are asking. Is it just a simple grep -v or is it something more?
May
10
comment SLiM not working in Arch Linux with Gnome
I believe the replacement is udev.
May
10
comment How can I find a rogue alias declaration?
A related question about environment variables instead of aliases. Basically, there is no easy way since the alias could have been set anywhere. Try putting set -x as suggested at the top of your and see if that narrows it down for you.
May
10
comment Parallel execution of a program on multiple files
The (pseudo-)code you posted doesn't actually run two instances of your program in parallel. If you have either xargs or GNU make or some version of parallel, then there is no need to reinvent this particular wheel.
May
10
comment Parallel execution of a program on multiple files
If you have a version of xargs with the -P option available, see this question.
May
10
comment How to replace text after the cursor location in VIM
@xiaohan2012 I answered the question you posted, by giving you something that would replace the word Linux with the word Unix assuming the cursor position you gave. I don't think replace means what you think it means. If you are talking about vim's replace commands r and R, they are not the best choices to use here. If this is not what you are looking for, then ask the right question to get what you want.
May
10
comment How to replace text after the cursor location in VIM
@xiaohan2012 Those are fairly basic vim commands. It means "change text to end of word", type "space Unix", and "esc" key to exit Insert mode. If you are unfamiliar with vim, learning it enough to use it fluently does take a non-trivial amount of time. If you are willing to do that, start with the vimtutor command.
May
10
answered SLiM not working in Arch Linux with Gnome
May
10
answered How to replace text after the cursor location in VIM
May
10
revised Multiline shell script comments - how does this work?
added 323 characters in body
May
9
awarded  Good Answer
May
9
revised Difference between /etc/init.d/networking restart and invoke-rc.d networking restart
edited body; edited tags
May
9
comment Difference between /etc/init.d/networking restart and invoke-rc.d networking restart
There is also service networking restart. Unfortunately I don't know enough to give you a detailed comparison of the 3 methods, except that running the /etc/init.d/ script is more "low-level" than the others.
May
9
revised Multiline shell script comments - how does this work?
added 191 characters in body
May
9
revised In Bash, when to alias, when to script, and when to write a function?
edited body
May
9
comment Terminal 256 colors don't work through Tmux
Try setting TERM to xterm-256color.
May
9
comment VIM jump from one xml tag to the closing one
I think you'll need a plugin like matchit in order to be able to match XML tags. matchit itself seems to come with most vim distributions, but you'll still have to enable it yourself. :help matchit-install for more.
May
9
revised In Bash, when to alias, when to script, and when to write a function?
added 53 characters in body