86,291 reputation
1094208
bio website
location European Union
age
visits member for 2 years
seen 31 mins ago

Sep
20
answered Bash script error with strings with paths that have spaces and wildcards
Sep
20
comment Gmail and mutt: msmtp error
@jasonwryan, gmail does support smtps (SMTP over SSL on port 465) in addition to submission (SMTP on port 587 for submission only, where STARTTLS is supported). Here, you want smtps://REDACTED@gmail.com@smtp.gmail.com (465 is the default port for SMTPS, like 443 is the default port for HTTPS (HTTP over SSL)).
Sep
20
awarded  Nice Answer
Sep
19
comment Go n directories down
What about for file in /*/*/*/*/*/*/file.xxx; do...?
Sep
19
revised bash how to remove options from parameters after processing
added 14 characters in body
Sep
19
comment bash how to remove options from parameters after processing
resetting OPTIND is what I call starting another getopts loop. In effect, that's parsing several command lines/sets of options (-R, -t /mybackup, -f). I'll keep my down vote for now as it's still obfuscated, you're using $a uninitialised, and args= opts... is likely to leave args unset (or set to what it was before) after opts returns in many shells (that includes bash).
Sep
19
revised bash how to remove options from parameters after processing
clarifications for @mikeserv
Sep
19
comment bash how to remove options from parameters after processing
Your long option converting would also convert non-options (as cp -t --file foo or cp -- --file foo) and would not cope with options entered abbreviated (--fi...), or with the --target=/dest syntax.
Sep
19
revised bash how to remove options from parameters after processing
deleted 4 characters in body
Sep
19
revised bash how to remove options from parameters after processing
added 10 characters in body
Sep
19
comment What does “LC_ALL=C” do?
Do you have an example of a language other than US-English that is compatible with ASCII? (genuine question, I could not think of one myself). Do you know of a software that has been translated to English and where messages are not in English when the locale is C?
Sep
19
revised Executing user defined function in a find -exec call
added 355 characters in body
Sep
19
awarded  Nice Answer
Sep
19
awarded  Enlightened
Sep
19
awarded  Nice Answer
Sep
18
comment Use AWK to pad date and time formats
Thanks Gnouc, I stand corrected.
Sep
18
revised Use AWK to pad date and time formats
added 65 characters in body
Sep
18
comment Text replace literally *all* instances of a string through stdin, stdout
Also, on input, what if the user enters FOR\bO. How could your wrapper handle that?
Sep
18
comment Text replace literally *all* instances of a string through stdin, stdout
You realise that it would need to delay the output. If something outputs BA and pauses, you'd need to wait for the next char to see if it's R or not.
Sep
18
comment Use AWK to pad date and time formats
While you're at it, you could reorder the dates to 2014-09-14 which is less ambiguous and helps with sorting.