Reputation
25,358
Next tag badge:
1051/400 score
79/80 answers
Badges
3 61 95
Newest
 Good Answer
Impact
~1.4m people reached

Apr
16
revised How to grep for a single quote?
added 1 characters in body
Apr
16
comment How to grep for a single quote?
@bonsaiviking The OP is probably using GNU grep, which does.
Apr
16
answered How to grep for a single quote?
Apr
16
comment Route incoming network requests for a given port to different applications
How do you normally start and stop your main application? Seems to me the simplest approach is to modify that routine to also stop and start your helper application (which listens on the same port).
Apr
16
comment Is there any simple way to change one line in a lot of files?
Please don't (ab)use command substitution like that. It's fragile and inefficient and find(1) already exists for this purpose.
Apr
16
revised Why am I still getting a password prompt with ssh with public key authentication?
edited tags; edited title
Apr
16
comment swapping fields in columns by fixed pattern (yes, no, no, yes)
That was my initial suggestion as well, but after a long comment exchange I came to believe that the desired order is to have page 1 always adjacent to the last page (rounded to multiple of 8).
Apr
16
comment using lines of output as an array in bash
IFS= prevents read from stripping leading and trailing whitespace (try read -r a <<<' foo ' vs IFS= read -r a <<<' foo '). If the table names don't have such things then it won't make a difference, but I threw it in for safety in case they do.
Apr
16
comment using lines of output as an array in bash
It should be mentioned that the command substitution approach requires the table names to not contain any whitespace characters.
Apr
16
comment using lines of output as an array in bash
@Mikel Sorry, I'm not sure what you mean. The output of the first command has to be newline delimited. The output of the second one can be anything it likes.
Apr
16
answered using lines of output as an array in bash
Apr
16
answered swapping fields in columns by fixed pattern (yes, no, no, yes)
Apr
16
comment swapping fields in columns by fixed pattern (yes, no, no, yes)
let us continue this discussion in chat
Apr
15
comment swapping fields in columns by fixed pattern (yes, no, no, yes)
I'm probably misunderstanding things but for a 200 page book do you really want page 1 and page 200 adjacent on the same sheet of paper? If you are imposing A6 on A4, that's 8 pages of A6 per sheet of A4 (4 per side). How would the binding even work in that case?
Apr
15
comment swapping fields in columns by fixed pattern (yes, no, no, yes)
Hmm, the page reload must have been slow for me. I still don't understand why you want to use so much code when you could just print 1u,16u,8,9,15u,2u,10,7,3u,14u,6,11,13u,4u,12,5 directly.
Apr
15
comment gnuplot 'with lines' produces unwanted “boxes”
Try png instead of jpeg and see if it makes a difference.
Apr
14
revised Is there a better alternative to sudoedit?
edited tags
Apr
14
revised How to properly and easy configure `xdg-open` without any enviroment?
edited tags
Apr
14
answered Finding Writeable Remaining Space
Apr
14
comment Finding Writeable Remaining Space
Is your system using quotas? In that case quota -v or some variation usually works. Also, did you mean df instead of du?