Skip to content

Commit

Permalink
using bash instead of ksh. it should be quite compatible. better woul…
Browse files Browse the repository at this point in the history
…d be a proper port to sh (or better, perl)
  • Loading branch information
steveschnepp committed Mar 18, 2012
1 parent 219b679 commit dec087a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/glassfish/glassfish_counters_
@@ -1,4 +1,4 @@
#!/bin/ksh
#!/bin/bash
# -*- sh -*-

: << =cut
Expand Down Expand Up @@ -92,4 +92,4 @@ awk 'BEGIN{ FS="[ = ]" }
/-count / { nwhat = split($1, what, ".")
gsub(/-count/, "", what[nwhat])
print what[nwhat] ".value=" $NF}
'
'

2 comments on commit dec087a

@kenyon
Copy link
Member

@kenyon kenyon commented on dec087a Mar 18, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better, python, or haskell. :P

@kenyon
Copy link
Member

@kenyon kenyon commented on dec087a Mar 18, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see anything ksh-specific in this code though.

Please sign in to comment.