Search Results

Search: Posts Made By: tapia
2,087
Posted By bartus11
Try:ps -ef | grep mgr.prm | awk '{print $10}' |...
Try:ps -ef | grep mgr.prm | awk '{print $10}' | sed 's!/dirprm/mgr\.prm$!!'
3,886
Posted By srinivas matta
you can google it also. grep -w
you can google it also.

grep -w
2,171
Posted By Yoda
That is a Useless Use of cat...
That is a Useless Use of cat (http://partmaps.org/era/unix/award.html#cat) and Useless Use of wc -l (http://partmaps.org/era/unix/award.html#wc)

Use an infinite while loop and break when found:...
2,171
Posted By neutronscott
That's an odd if. Most likely you just want: ...
That's an odd if. Most likely you just want:


if grep -q "$ORACLE_SID" /etc/oratab


or


if grep "$ORACLE_SID" /etc/oratab >/dev/null 2>&1



edit: "Useless Use of Test" / "Useless Use...
16,115
Posted By gary_w
You could come up with your own system. Ask the...
You could come up with your own system. Ask the google, I have seen many menuing systems folks have come up with. Here's a fairly simple one:
#!/bin/ksh

typeset -r SLEEPTIME=2

REVON=$(tput...
15,694
Posted By Scrutinizer
Further optimization: if grep -q STOP...
Further optimization:

if grep -q STOP /tmp/testoutput.log; then
echo "process stop"
fi

if grep -q START /tmp/testoutput.log; then
echo "process start"
fi
15,694
Posted By Yoda
That is Useless Use of Cat...
That is Useless Use of Cat (http://partmaps.org/era/unix/award.html#cat) and Useless Use of wc -l (http://partmaps.org/era/unix/award.html#wc)

Try this code:
if [ -f ${LOGFILE} ]; then
...
3,076
Posted By radoulov
$ sqlplus -S <<! | while read; do printf 'line:...
$ sqlplus -S <<! | while read; do printf 'line: %s\n' "$REPLY"; done
> / as sysdba
> select sysdate from dual;
> !
line:
line: SYSDATE
line: ---------
line: 08-JAN-13
line:
Or:
$ sqlplus -S...
11,826
Posted By Scrutinizer
Try this: { sqlplus -s /nolog <<EOF set head...
Try this:
{ sqlplus -s /nolog <<EOF
set head off pagesize 0 feedback off linesize 200
whenever sqlerror exit 1
conn / as sysdba
COL VALUE FOR A60
select value,name from v\$parameter where value...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 08:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy