Reputation
2,198
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
7 15
Newest
 Nice Answer
Impact
~87k people reached

Oct
4
answered How to make executable of all files excluding a few file types?
Oct
4
comment How to make executable of all files excluding a few file types?
It seems to be 64-bit specific.
Oct
4
comment How to make executable of all files excluding a few file types?
This is not really ideal since there may be .o/.h/.cpp and other files.
Oct
4
comment How to make executable of all files excluding a few file types?
So you want to add executable bit to all files in current directory that do not have any extension in their name, right (so no dot in filename)?
Sep
22
awarded  Enlightened
Sep
22
awarded  Nice Answer
Sep
21
awarded  Custodian
Sep
19
revised How to grep a specific line _and_ the first line of a file?
added 327 characters in body
Sep
19
comment How to grep a specific line _and_ the first line of a file?
@sch: I couldn't find information about this in gnu sed manual. ps aux | sed --posix '1b;/syslog/!d' works as expected. Do you mean that I can't use semicolon to separate commands in sed at all if I want to be portable or it's somehow related only to b command?
Sep
17
awarded  Mortarboard
Sep
17
revised How is this sed command working?
added 126 characters in body
Sep
17
comment How is this sed command working?
Definitively. I can't provide all the detail about sed in this answer as I would have to rewrite the whole manual. I will add this as a note to this question since it indeed may be confusing in some cases.
Sep
17
comment How is this sed command working?
Yes, this is true. In other words d command not only removes the line from current buffer but since there is nothing in it, there's not much point in continuing with more commands. This is why it ignores the rest of them and starts from first command with the next line.
Sep
17
answered Backing up partition using dd and changing files
Sep
17
reviewed Edit Understanding backtick (`)
Sep
17
revised Understanding backtick (`)
spelling correction; added explaination about using useless cat
Sep
17
revised Understanding backtick (`)
added 598 characters in body
Sep
17
answered Understanding backtick (`)
Sep
17
answered How is this sed command working?
Sep
16
comment Adding a new System call to Linux 3.2.x with a loadable kernel module
I believe that this question is much more related to Linux as an OS than to programming itself. It is also quite important to know what are the possibilities of extending our system abilities and what are its limits. This, for example, makes you understand why some features are not possible to implement as loadable module and needs kernel patching. Knowing why it is like this may also give you some ideas of security vs usability kernel developers have to make. Would that question be more on topic if OP would ask only if it's possible and why not and not how to implements this?