354 reputation
46
bio website
location United States
age 43
visits member for 3 years, 4 months
seen 12 mins ago

Working amidst the ever merging & forever blurred realms of technocrat and troglodyte.


May
3
comment Correct way to override file permission /dev/null
A script can't "write" temporary files to /dev/null. (It's likely not a permissions issue: anyone can send data to /dev/null -- it's a bit bucket.) If it's sending data to /dev/null, then that data is obviously irrelevant to the correct working of the script (assuming the script works correctly). If fact, changing /dev/null on your system will likley break not only this script, but also other things on your system. Scripts are just text -- so, yes, you'll have to change the script in order to do what you want.
Mar
19
awarded  Enthusiast
Dec
17
awarded  Necromancer
Nov
23
answered -bash: __git_ps1: command not found
Nov
22
awarded  Necromancer
Oct
28
revised Webcam “on” light when no app using it, Linux Mint
added 371 characters in body
Oct
28
answered Webcam “on” light when no app using it, Linux Mint
Sep
21
comment How to turn on laptop with external power button
I had to re-read this description a couple times to understand what was being asked. My initial response to the question in the title was to just say "press the button." :-)
Sep
20
comment Convert .ai to .png?
Inkscape import formats: wiki.inkscape.org/wiki/index.php/…
Sep
20
comment How can I make 'diff -X' ignore specific paths and not file names?
true, could have saved a lot of time. just install rsync :-) (seriously, just install rsync)
Sep
19
comment How can I make 'diff -X' ignore specific paths and not file names?
Glad to hear you've got something working, but... for posterity: "you've passed the type -f to find. If you leave this out, the result might contain directories" => correct: so, don't leave it out. I added it for a reason. No need to recursive diff if you're already using recursive find. "I need find to list directories" => no, you don't; you need the files in directories to be listed, and find does that. "No option to exclude symlinks" => using -type f does exclude symlinks; alternatively, use -type l -prune -o will exclude symlinks (use in my example w/ patterns to exclude)
Sep
19
awarded  Yearling
Sep
17
comment linux diff: is there a way to list differences by when the files were last modified?
I think it's time to put those directories under version control. (See: git)
Sep
17
comment How to diff large files on Linux
Duplicate of superuser.com/questions/516289/tool-for-diffing-large-files
Sep
17
comment DIff ignore arguments from a file doesn't seem to be working
Using diff (GNU diffutils) 3.2 on my system, this makes no difference, either format works correctly.
Sep
17
revised How can I make 'diff -X' ignore specific paths and not file names?
another example
Sep
17
comment How can I make 'diff -X' ignore specific paths and not file names?
@Ash No, not at all. Note I didn't use diff -r, which would defeat the purpose of using find. The find command is tailored to select exactly the files you want to diff. Luckily it is very, very flexible. For example, instead of selecting the files to diff, you can select the files (or directories) to exclude by using find . \(stuff to exclude... -prune \) -o ...stuff to diff, for example: find ONE \( -regex 'ONE/a/2.txt' -o -name b -prune \) -o -type f -exec bash -c 'echo diff -q "${1}" "${2/ONE/TWO}"' - {} {} \;
Sep
14
awarded  Editor
Sep
14
comment How can I make 'diff -X' ignore specific paths and not file names?
updated answer to include example excluding file paths from the diff, instead of just using basename
Sep
14
revised How can I make 'diff -X' ignore specific paths and not file names?
added 997 characters in body