Rephrase with a thesaurus

you will love it, it rephrases whatever you tell it ti

http://kraftek.com/cgi-bin/rephrase/index.sh

#!/bin/bash

echo “Content-type: text/html”
echo “”
echo “<html><body bgcolor=white><font size=-1>”

QUERY=`echo “$QUERY_STRING” | sed -n ‘s/^.*query=([^&]*).*$/1/p’ | sed “s/%20/ /g;s/ //g”`

QUERY=`echo $QUERY|sed ‘s/+/ /g’`
wget=/usr/bin/wget

thesaurize(){
l=`echo $1|wc -c`
if [ $l -le 5 ];then
echo $1
else
S=`$wget -nv -O – http://thesaurus.reference.com/search?q=”$1″ 2>&1|sed ‘s/>/>n/g;/^<script/,/</script>/d;/^<style/,/</style>/d;/^<form/,/</form>/d;s/<[^>]*>//g;s/,/,n/g’|sed -e ‘1,/Main Entry/d’ -e ‘/Antonyms/,$d;s/^[ t]*//;1,/Synonyms/d’ -e ‘/Antonyms/,$d’| sed ‘s/,//g’|egrep -v ‘^Part of Speech|^Main Entry|^Synonyms|^Antonyms|^Definition|*’|grep .|head -10|shuf -n 1`
SL=`echo $S|wc -c`
if [ $SL -gt 1 ];then
echo $S
else
echo $1
fi
fi
}

cat <<EOF
<style type=”text/css”>
form {
margin: 0px;
}
</style>
<form action=index.sh method=get>
Regurgitate: <input type=text size=80 name=query>
<input type=submit value=search>
</form><br><br>
EOF

echo “<b>Original:</b><br> $QUERY<br><br>”
echo “<b>Re-interpreted:</b><br>”
for i in 1 2 3 4 5;do
for word in $QUERY;do
echo -n “`thesaurize $word` “
done
echo “<br>”
done
echo “</body></html>”

create big concat on svm

#!/bin/ksh
( N=`format < /dev/null | egrep -i 'emc|hit' | wc -l| sed 's/ //g'` /usr/ucb/echo -n "metainit d1 $N " format < /dev/null | egrep -i 'emc|hit' | awk '{ print $2 }' | while read d;do /usr/ucb/echo -n "1 ${d}s2 " done echo "" ) > /tmp/makevol.ksh
chmod 755 /tmp/makevol.ksh

Raid Manager commands

Got these from elsewhere:
Term/Cmd Description Command / File
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
SUNWosafw Open Storage Array Firmware
SUNWosamn Open Storage Array Man Pages
SUNWosar Open Storage Array (Root)
SUNWosau Open Storage Array (Usr)
arraymon Array monitor daemon < /usr/lib/osa/bin/rdaemon 28 140 > in background
rdaemon Redundant Controller Resolution Daemon < /usr/lib/osa/bin/arraymon > in background
rm6 Raid Manager GUI
# /usr/lib/osa/bin/rm6 &
raidutil RAID Management Configuration Utility
# raidutil -c c6t5d0s2 -A 65 1 -T 99 1 -f 1 1-C off 1 -m off 1 -p disable -S 8
raidutil Create new lun
# raidutil -c (raid controller) -g (disks) -l (raid level) -n (number of LUN) -s (capacity)
raidutil Create RAID5 lun 0
# raidutil -c c3t4d1s0 -s 1000 -n 0 -l 5 -g 11,21,31,41,51
raidutil Create RAID1 lun 2 (18g)
# raidutil -c c2t5d0s0 -l 1 -n 2 -r fast -s 17234 -g 50,11
raidutil Create Hot Spare
# raidutil -c (raid controller) -h (disk)
raidutil -c c2t5d0s0 -h 213
raidutil Delete a LUN
# raidutil -c (raid controller) -D (LUN number)
raidutil Delete lun 0
# raidutil -c c3t4d1s0 -D 0
raidutil Delete Hot Spare
# raidutil -c (raid controller) -H (disk)
raidutil -c c3t4d1s0 -H 113 (row,column 113=1,13)
lad List Array Devices
# lad
healthck perform a health check on RAID Modules # healthck -a
healthck Get raid module specifier
# healthck -a (ex: da103_001: Optimal)
drivutil Display Drives associated with groups
# drivutil -d
drivutil Fail a Drive
269/433
# drivutil -f 01
drivutil Report Status or reconstruction status
# drivutil -p
drivutil Unfail a drive and recontruct data
# drivutil -U
log Log file /usr/lib/osa/rmlog.log
logutil Log format utility – View log # logutil
rmparams Parameters file /usr/lib/osa/rmparams
rdacctl Correct problem of LUNS on different
# rm /dev/rdsk/c3*,/dev/rdsk/c5*,/dev/dsk/c3*
controllers on shared A3500 in cluster
# rm /dev/dsk/c5*,/dev/osa/dev/dsk,rdsk c5* c3*
# rdacctl config;drvconfig -i sd, disks
kraftek.html POSTS rescue rescued.html rescued.txt x y z BEGIN RAID Manager addition
kraftek.html POSTS rescue rescued.html rescued.txt x y z DO NOT EDIT from BEGIN above to END below…
forceload: drv/sd
forceload: drv/rdnexus
forceload: drv/rdriver
kraftek.html POSTS rescue rescued.html rescued.txt x y z END RAID Manager addition
270/433

Print only process numbers from a fuser output

bash-2.03# fuser -c / 2>&1| tr -d ‘[:alpha:]’ | sed ‘s//://g’
21567 21566 21523 21507 21476 21397 20978 20711 20608 20598 19955 19921 19912 19873
19872 19871 19870 19869 19868 19867 19860 19859 19750 19743 19512 19187 19186 19185
19184 19183 18779 18357 18346 18048 17566 17224 17220 17218 17198 17035 17033 17031
17029 17014 16990 16964 16584 16582 15883 15881 15739 15327 15325 15320
72/433