19,257 reputation
34072
bio website
location United States
age
visits member for 3 years
seen 4 hours ago

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


7h
comment Count how many elements in the nth column in a whole file
You may want to update your answer based on comments to the original question. Evidently OP means to count the commas and does not mean length($2) literally.
11h
comment Count how many elements in the nth column in a whole file
Can you clarify what you mean by length($2)? Do you mean "number of characters" (like awk does) excluding commas, or do you mean number of fields, like "number of commas + 1"? For example, your "length($2)" for 12,13 is 2 or 4?
11h
comment examine the exit code of processes launched in parallel from a script
Couldn't you can use wait on each process sequentially?
14h
comment Is there a way to tell sudo to set my username as owner for the files created instead of root?
sudo cat /etc/foo.txt > ~/foo.txt. Files tend to be only readable by root for a reason, so remember to keep that reason in mind when making copies readable by non-root users.
Aug
18
awarded  Fanatic
Aug
17
comment Why can't ed be exited with C-c?
Also, not sure if joke
Aug
17
comment Why can't ed be exited with C-c?
Interactive applications are not the same as non-interactive. The Ctrl-C behavior you are used to is the default for non-interactive ones. The interactive ones may override the behavior of Ctrl-C for their own purposes.
Aug
11
comment How can I create a multi-boot USB using livecd-tools?
@QuestionOverflow Since it sounds like a separate issue it is better to have it in separate question I think. Perhaps the question here is how to mix efi and non-efi isos on the same USB. It is probably easier to go non-EFI for the entire USB drive.
Aug
11
revised How can I create a multi-boot USB using livecd-tools?
added 145 characters in body
Aug
11
answered How can I create a multi-boot USB using livecd-tools?
Aug
9
comment Why is “shebang” called “shebang”?
Relevant history
Aug
7
comment Why is “shebang” called “shebang”?
There doesn't seem to be a single source, so I am not sure this question can be answered. There are multiple plausible interpretations out there but it is impossible to determine which is back-formation and which is the original source. The jargon file and wikipedia entries mention several possible explanations.
Aug
7
comment Why is “shebang” called “shebang”?
@Tim shb is not really a natural-sounding consonant in English, so some vowel is required to separate the sh from the b.
Aug
7
comment Fork call and recursion
@terdon "any code that contains fork is by definition one that will only run on *nix" - There may be rare exceptions or corner cases I am unaware of, but this is the general rule.
Aug
7
comment Fork call and recursion
@terdon You could argue programming questions are off-topic, but you can't really say fork is "purely C" since it is a system call primarily associated with *nix and POSIX operating systems, with behavior that happens to "break" the normal rules of "pure" C. You won't find any mention of "fork" in the C standard.
Aug
6
comment What are some preferred methods to efficiently edit files on a remote Unix server?
No worries. Vim has a bit of a steep learning curve to turn it from a crappy console Notepad to a real power tool. Not everyone likes it but I would really recommend going through some of the basics so you at least have an idea of what it is capable of.
Aug
6
comment What are some preferred methods to efficiently edit files on a remote Unix server?
My preferred method is simply sudoedit over ssh.
Aug
6
comment What are some preferred methods to efficiently edit files on a remote Unix server?
"vim, [...] which of course limit your cursor to navigate one character at a time with very limited cut/copy/paste capabilities." -- I would recommend running vimtutor and going through it on your local machine. It should take 30 minutes or less. Your statement shows that you clearly have no idea what vim can do.
Aug
6
comment Is space not allowed in a filename?
@snailboat Spaces are a symptom of the real problem which is a lack of standardization. Unix filesystems allow file "names" to nearly unrestricted binary blobs. The only illegal bytes are 0 and 47 (the / separator). Using all 254 remaining bytes opens the door to all manners of unspeakable eldritch "names". Obviously this is insane, but not everyone agrees on what "sane" is, and different characters will break different tools. The intersection of everyone's sanity is quite small.
Aug
6
comment Store output of a command into a ring-buffer
@PeterMortensen Wikipedia:Gibibyte