40,623 reputation
584128
bio website chrisdown.name
location London, England
age
visits member for 3 years, 6 months
seen 8 mins ago

3h
revised Is there `find`'s `-exec` like option in `ack-grep`?
added 1 character in body
5h
answered Is there `find`'s `-exec` like option in `ack-grep`?
5h
comment Is there `find`'s `-exec` like option in `ack-grep`?
This is dangerous, any filenames containing whitespace will be handled improperly, and could cause unexpected files to be removed.
Mar
26
comment How to make unix service see environment variables?
@MarkBerry Correct. You can think of [ (or test) as just another command -- all if does is take some action based on exit status.
Mar
26
revised `command .*` acts on the parent directory
added 8 characters in body
Mar
26
comment `command .*` acts on the parent directory
Unless I'm misunderstanding, the question specifies that only hidden directories are desired to be chowned, whereas this chowns everything.
Mar
26
comment How to make unix service see environment variables?
@MarkBerry -f is part of [, not if.
Mar
26
answered `command .*` acts on the parent directory
Mar
26
comment can we get sorted grep output
No, and even if there was, it would be wrong. Use sort.
Mar
25
comment Touch a file and give it an icon image via command line
That would entirely depend on what is showing your custom icon. An XDG compliant program? In which case it would need to be done in the .desktop file.
Mar
24
answered What is the reason for having numbers within the brackets of a function ?
Mar
24
comment Is here any 100% solution how to run 3 monitors (2 nvidia + 1 iGPU) with drivers?
This largely depends on your hardware capabilities, not your drivers.
Mar
23
comment How can I find the package that contains a program in Debian?
Whoever drive-by downvoted this answer and mine at the same time, I'm sure both me and goldilocks would appreciate some feedback instead of just blind downvoting :-)
Mar
23
revised How can I find the package that contains a program in Debian?
Made generic
Mar
23
comment How can I find the package that contains a program in Debian?
By default, apt-file search takes a literal substring pattern to search for, not a glob. At least on my system, apt-file search "*/top" returns 0 results.
Mar
23
answered How can I find the package that contains a program in Debian?
Mar
22
revised How to put a newline special character into a file using the echo command and redirection operator?
added 1 character in body
Mar
22
comment How to put a newline special character into a file using the echo command and redirection operator?
Note that this is not POSIX, whether it is available largely depends on what shell you are using.
Mar
21
answered How to put a newline special character into a file using the echo command and redirection operator?
Mar
6
answered how to find URLs accessed by a process