Solaris Tips: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== source-highlight-2.7 == | |||
<geshi lang="bash"> | |||
# First I needed to compile boost. This was not so bad | |||
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-libraries=regex --enable-static=yes | |||
# The I had to figure out how to get source-highlight to compile | |||
$ ./configure --prefix=$HOME --exec-prefix=$HOME --enable-static=yes --enable-shared=yes CPPFLAGS=-I${HOME}/include/boost-1_34_1 \ | |||
--with-boost-regex=gcc41-1_34_1 | |||
</geshi> | |||
==Comma separate a list== | ==Comma separate a list== | ||
Revision as of 00:44, 14 September 2007
source-highlight-2.7
<geshi lang="bash">
- First I needed to compile boost. This was not so bad
$ ./configure --prefix=$HOME --exec-prefix=$HOME --with-libraries=regex --enable-static=yes
- The I had to figure out how to get source-highlight to compile
$ ./configure --prefix=$HOME --exec-prefix=$HOME --enable-static=yes --enable-shared=yes CPPFLAGS=-I${HOME}/include/boost-1_34_1 \ --with-boost-regex=gcc41-1_34_1 </geshi>
Comma separate a list
The challenge here is to avoid a trailing comma.
$ echo "foo\nbar\n" | awk ' {printf "%s%s",s,$0;s=","}END{print ""} ' foo,bar
Run a command on all hosts in a netgroup
mrsh -P -c 'uptime' your-netgroup
Find all members in a sudoers group
ypmatch sqladmin group