1,084 reputation
47
bio website
location United States
age
visits member for 2 years, 11 months
seen Sep 10 at 16:47

Dec
17
comment bash - replace space with new line
replace change with substitute, that's what the s actually stands for!
Dec
17
comment bash - replace space with new line
sed can do so much more, but is totally overkill for this. tr is the right tool for THIS job, but knowledge of sed and regexes will certainly come in handy later!
Dec
17
comment bash - replace space with new line
tr was my first thought as well, although there are so many ways to do it! This is pretty much EXACTLY what tr is for, though!
Dec
13
comment How to find out which file is currently opened in vim?
I always use statusline as well. +1
Dec
12
awarded  Popular Question
Dec
3
answered Can no longer boot after updating Arch
Dec
3
comment Can no longer boot after updating Arch
Check your init settings from gummiboot (which I've never personally used). It may be either missing something or have something it doesn't need anymore. Hop into irc #archlinux on freenode. They're usually pretty knowledgable and quick to help.
Dec
2
comment How do I get a websites title using command line?
+1 For ruby + nokogiri. I've used it for all kinds of web scraping, it's amazing!
Nov
29
comment `cd` up the canonical path
@Lekensteyn Yeah, but I can remember to type back if I want to go back a directory, and don't do it often enough to remember cd -
Nov
27
comment `cd` up the canonical path
alias back=cd "$OLDPWD"
Nov
26
awarded  Guru
Nov
25
comment Is it possbile to mount Windows filesystems without using the root account?
SMB/CIFS is definitely the way to go for that (or if you're able to get onto the windows machine, something like winsshfs or winscp if ssh is available on the linux server)
Nov
22
comment play mp3 file as soon as its downloaded
I might be wrong, but you -MIGHT- be able to just mplayer the URL and have it play the track. I haven't used mplayer in a while, though.
Nov
20
comment A command that gives username@hostname:pwd
$(whoami) runs the command whoami and uses the output, and $PWD just grabs an environment variable. Forking off fewer processes is better for speed and performance, but in this case it doesn't really make a difference. If you do printenv it should list all the environment variables. I have a $USER, so I could use echo "$USER@$(hostname):$PWD"
Nov
20
comment How to get only files created after a date with ls?
-newermt was not available on the last server I was working on. -newer does accept files/directories and will only list files newer than that file/directory, though.
Nov
20
comment A command that gives username@hostname:pwd
PWD is environment varible, which is called by $PWD. There are plenty of other environment variables (like $PS1, the first part of your command prompt). The others are using $() syntax to use the output of a command in place. This is a basic overview, at the very least, of what the difference is. When you starting getting further into the command line, and start making aliases and functions and bash scripts, it's something you'll learn to love. I wish I could think of some of the crazy things I've done with this!
Nov
19
comment How to report time and other information on all bash commands?
That was my first thought as well. It's nice to be in good company!
Nov
1
awarded  Yearling
Jul
8
awarded  Good Answer
Apr
17
comment How to remove multiple blank lines from a file?
+1 for awk instead of sed