Reputation
1,621
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 10
Newest
 Yearling
Impact
~136k people reached

  • 0 posts edited
  • 0 helpful flags
  • 55 votes cast
Oct
30
comment bash iterate file list, except when empty
Which recurses through subdirectories, and I want to invoke a bash function (not script) for the matches.
Oct
30
comment bash iterate file list, except when empty
@cuolnglm: spookily this results in ls returning the name of the executing script rather than an empty list on this RHEL5 box (bash 3.2.25) if I do FILES=ls *.zip; for fname in "${FILES}"... but it does work as expected with for fname in *.zip ; do....
Oct
30
asked bash iterate file list, except when empty
Oct
26
answered Use of O_DIRECT on Linux
Oct
8
comment tar with relative paths
No - look at the original question - the last argument is an absolute path.
Aug
28
comment opensshd / openssh - allow EITHER keypair or password
I'd set the file permissions but not the directory - changing this, it now works.
Aug
28
accepted opensshd / openssh - allow EITHER keypair or password
Aug
28
revised opensshd / openssh - allow EITHER keypair or password
added 762 characters in body
Aug
28
asked opensshd / openssh - allow EITHER keypair or password
Aug
17
accepted Awkward awk exit code
Aug
16
comment Awkward awk exit code
awk -f foo ; eco $? gives 1 as expected.
Aug
14
revised Awkward awk exit code
added example from Suse
Aug
14
revised Awkward awk exit code
added example from Suse
Aug
14
comment Awkward awk exit code
Yes, bit odd when the man page says....env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Aug
14
comment Awkward awk exit code
strange. I can't see anything odd in my aliases or environment which might affect this. Got some oddities in my ld.so.conf since Oracle installed here.
Aug
14
comment Awkward awk exit code
drat, RHEL 6.6 uses awk 3.1.7 which has the same problem :(
Aug
14
comment Awkward awk exit code
Thanks larsks - I'm running awk 3.1.5 on RHEL 5 - I will dig further to see if an upgrade is a viable solution
Aug
14
comment Awkward awk exit code
If you have a look at the examples you'll see that in one case I've embedded the awk in shell script. File extensions are not significant on Unix/Linux shells.
Aug
14
asked Awkward awk exit code
Jul
19
awarded  Yearling