658 reputation
611
bio website
location Sunnyvale, CA
age 29
visits member for 5 years, 2 months
seen 2 days ago

Sep
28
comment How to UNIX sort by one column only?
@MiNdFrEaK: If you have a completely separate question, ask it separately. This question is about sorting a file in a particular way, not about how join works.
Sep
27
comment How to UNIX sort by one column only?
@MiNdFrEaK: The requirement of join is that the input be sorted on the fields you're joining on. So sure, this output is sorted on the first field, and you can join on it.
May
6
comment Removing all Facebook evidence from a PC
Chrome doesn't need any special options for multiple profiles anymore; there's a great UI, assuming they're tied to Google accounts. You can find it in the settings in the "Users" section, or via "Sign in..."/"Signed in as [user]..." in the wrench menu.
Oct
25
comment Is there a way to jump to an earlier part of a command line command in the Mac Terminal?
I'm a pretty big fan of Vim, so the principle of your answer is great by me, but modal command line editing might be a bit confusing to the OP, especially without any mention of how to get back to being able to type! Return to insert mode using i (insert) to type before the cursor or a (append) to type after the cursor.
Jul
19
comment Determining if a hard disk has been removed and data copied from it?
Many commenters have mentioned that physical access pretty much means you're screwed. A related point: if you determine that someone has physically touched your drive, who cares about proof they've copied data? Assume they have.
Jun
18
comment Reinstall debian while keeping installed packages and data
Yeah, it's usually not too bad. But sometimes it's trickier - say you're trying to build something like mpd from scratch, and you know it needs some libraries for certain audio formats, but they're nonfree, so they're not listed build dependencies of the mpd package. Hopefully you know the name of the desired library, but you still have to go search a bit. Having a list from your previous install could be handy - maybe a list of manually installed packages.
Jun
18
comment Reinstall debian while keeping installed packages and data
Essentially, the problem is to avoid that period of occasional annoyance after reinstalling when you run into packages you haven't reinstalled. (Build dependencies can be a pain, since you don't always remember the package name, or even what they all were!)
Jun
12
comment how did git add itself to the PATH on OSX 10.6 ? It's not in bashrc or profile?
I don't know about OSX, but on linux, your bash profile generally sources /etc/profile, which then sources /etc/profile.d/*.sh.
Apr
14
comment Why do we use ./progname in *nix systems to execute a program?
@Marcin: I think it may be you who did not understand, but I don't think it's worth any further discussion in this forum.
Apr
13
comment Why do we use ./progname in *nix systems to execute a program?
@Marcin: Be careful what you're telling future readers - I think you have a bit more homework to do. Certainly you could write a shell which itself would use case-insensitive environment variables. But what do you think happens when you call getenv in C? Yes, on some platforms that ends up being case-insensitive, but not on the *nixes I know. I'm fairly certain there's nothing a shell can do about that. (Programs don't even have to have been started from within a shell! What about the first shell?)
Apr
13
comment Why do we use ./progname in *nix systems to execute a program?
I'm not talking about 100% POSIX compliance, I'm talking about compliance with this one tiny portion which everyone complies with. If you're going to make the argument that what matters is practice, not standards, find me the *nix system that in practice is case insensitive. (And no, it's not just a matter of shell - the underlying system is involved.)
Apr
13
comment Why do we use ./progname in *nix systems to execute a program?
Further, POSIX says: "Environment variable names used by the utilities in the Shell and Utilities volume of IEEE Std 1003.1-2001 consist solely of uppercase letters, digits, and the '_' (underscore)..." and explicitly mentions PATH and what it should mean.
Apr
13
comment Why do we use ./progname in *nix systems to execute a program?
@Marcin: It's not a matter of shell; it's POSIX. "Uppercase and lowercase letters shall retain their unique identities and shall not be folded together. The name space of environment variable names containing lowercase letters is reserved for applications." If your shell isn't case sensitive, it's broken - and it's not bash, dash, sh, ksh, zsh, tcsh, or csh. Good luck finding *nix users who aren't using one of those.
Apr
13
comment Why do we use ./progname in *nix systems to execute a program?
-1: environment variable names are case sensitive.
Jan
13
comment Does anyone else use mouse in Vim?
Of course, of course. I'm talking mostly about multiple lines that aren't a block (counting is hard!), or selections that don't include entire lines.
Jan
13
comment Does anyone else use mouse in Vim?
Some common mouse actions can be replaced with exciting vim commands, but there's really no replacement for the mouse when you want a large visual selection.
Aug
9
comment /etc/bashrc Permission denied
Have you managed to get into some unusual situation where root isn't root? Do you have a uid of 0?
May
13
comment grep changing the delimiter
@jhon: Then don't ask how to change grep, ask how to do what you want to do with something else. For example, you can specify the record separator in perl ($/) and awk (RS). Or you could do something like echo "$var" | sed 's/<delimiter>/\n/' | grep <pattern>. Many many answers, depending on what your actual problem is.
May
13
comment grep changing the delimiter
Read the man page, see if there's such an option (no, I don't believe there is).
May
13
comment ffmpeg: create a video from images
If that's the only obstacle, you could just write a script to either rename or symlink your images to a properly reindexed set.