Search Results

Search: Posts Made By: scripter.online
17,259
Posted By scripter.online
Hi methyl, Without the backticks we need...
Hi methyl,

Without the backticks we need one backslash.
Within the backticks we can use two or three backslashes.

Please check the example below

$ VALUE=`sqlplus -S "/ as sysdba" <<END...
17,259
Posted By scripter.online
Hi all, Sorry for late reply. Not one \...
Hi all,
Sorry for late reply.

Not one \ two \\ is enough( if we use one \ we will get ORA- errors)

I know only two \\ before $ (I am observed the same before) but three \\\ also working fine...
17,259
Posted By scripter.online
#!/bin/ksh VALUE=`sqlplus -silent "/ as sysdba"...
#!/bin/ksh
VALUE=`sqlplus -silent "/ as sysdba" <<END
set pagesize 0 feedback off verify off heading off echo off
select max(sequence#) from v\\\$log_history;
exit;
END`

VALUE=$VALUE + 1

...
3,559
Posted By scripter.online
ohh thanks methyl :) I am not effected upto...
ohh
thanks methyl :)
I am not effected upto now ......thatwhy i dont know :D
32,619
Posted By scripter.online
thanks for sharing ur knowledge ***REMOVED***
thanks for sharing ur knowledge

***REMOVED***
3,559
Posted By scripter.online
$ cat arg.sh #!/bin/ksh [ $# -ne 2 ] && echo...
$ cat arg.sh
#!/bin/ksh
[ $# -ne 2 ] && echo "Usage ${0} input1 input2 " && exit 1;
echo $2 $1

$ ./arg.sh 1 2
2 1

$ ./arg.sh
Usage ./arg.sh input1 input2
$
3,293
Posted By scripter.online
i used bash for the above mentioned ..its working...
i used bash for the above mentioned ..its working
:(
1,980
Posted By scripter.online
$ ls -l abc* -rw-r--r-- 1 scripter ...
$ ls -l abc*
-rw-r--r-- 1 scripter scripterworld 0 Aug 21 23:26 abc.txt
$ FILENAME=abc.txt
$ mv abc.txt `echo ${FILENAME} | cut -d "." -f1`.`date +%Y%m%d%H%M%S`.`echo ${FILENAME} |...
5,680
Posted By scripter.online
if test -x filename then echo Executable. ...
if test -x filename
then
echo Executable.
else
echo Not executable.
fi
3,293
Posted By scripter.online
Hi , Please check $ cat a.sh ...
Hi ,

Please check


$ cat a.sh
export VAR_A=9
echo In a.sh VAR_A : $VAR_A
./b.sh

$ cat b.sh
echo In b.sh VAR_A : $VAR_A
VAR_A=`expr ${VAR_A} + 9 `
echo In b.sh After adding VAR_A to...
15,903
Posted By scripter.online
You are most welcome
You are most welcome
4,257
Posted By scripter.online
Hi, $ find ./testdir -print ...
Hi,



$ find ./testdir -print
./testdir
./testdir/Count
./testdir/testdir.sh
./testdir/SQL
./testdir/filevalid.sh
./testdir/.hidden1
$

$ ls -ld testdir
drwxr-xr-x 6 scripter ...
57,109
Posted By scripter.online
Hi, $ ls -la | grep ^- -rwxr-xr-x ...
Hi,


$ ls -la | grep ^-
-rwxr-xr-x 1 scripter scripterworld 342 Aug 19 23:15 filevalid.sh
-rw-r--r-- 1 scripter scripterworld 0 Aug 20 00:47 .hidden1
-rw-r--r--...
3,293
Posted By scripter.online
Hi Suresh, $ cat a.sh export VAR_A=9 ...
Hi Suresh,

$ cat a.sh
export VAR_A=9
echo In a.sh VAR_A : $VAR_A
./b.sh

$ cat b.sh
echo In b.sh VAR_A : $VAR_A

$ ./a.sh
In a.sh VAR_A : 9
In b.sh VAR_A : 9
$
15,903
Posted By scripter.online
Hi Kumar, $cat > filevalidate.sh ...
Hi Kumar,



$cat > filevalidate.sh
#!/bin/ksh

FILENAME=${1}
FILECOUNT=`cat ${FILENAME} | wc -l`
COUNT=`expr ${FILECOUNT} - 2`
if [ `head -1 ${FILENAME} | cut -c 1` = H ]
then
...
2,090
Posted By scripter.online
Hi, $find . -name "STMT*" ! -empty...
Hi,



$find . -name "STMT*" ! -empty -exec ls -ltr {} \;
-rw-r--r-- 1 scripter scripterworld 401 Aug 19 21:47 ./STMT_1

$ find . -name "STMT*" -empty -exec ls -ltr {} \;...
25,455
Posted By scripter.online
#!bin/ksh DIRLOC=/var/tmp ...
#!bin/ksh
DIRLOC=/var/tmp
DIRNAMES="SchemaExtract SQL Count SchExtArchive"
for DIRNAME in ${DIRNAMES}
do
if [ -d ${DIRLOC}/${DIRNAME} ]
then
echo ${DIRLOC}/${DIRNAME} already exists...
3,861
Posted By scripter.online
1.you have not mentioned $symbol for max 2. No...
1.you have not mentioned $symbol for max
2. No space between if and [


max=0
echo Enter 10 numbers , one at a time
for i in 1 2 3 4 5 6 7 8 9 10
do
read n
max=`expr $max + $n`
if[ $n -gt...
2,740
Posted By scripter.online
like this ... SQL> select * from emp...
like this ...


SQL> select * from emp where rownum=1;
EMPNO ENAME JOB MGR HIREDATE SAL COMM
---------- ---------- --------- ---------- -----------...
6,687
Posted By scripter.online
Good post :-) $ ls -ltr|tail -1 ...
Good post :-)


$ ls -ltr|tail -1
-rw-r--r-- 1 scripter scripterworld 0 Aug 17 21:46 -f
$ find . -name -f -exec ls -ltrh {} \;
-rw-r--r-- 1 scripter scripterworld ...
7,305
Posted By scripter.online
if [ $1 -lt 1 ] || [ $1 -gt $nr ] ; then ...
if [ $1 -lt 1 ] || [ $1 -gt $nr ] ; then
echo "The number needs to be between 0 and $nr"
fi

use
|| for OR
&& for AND

scripter
3,263
Posted By scripter.online
Please check the parent directory permissions ...
Please check the parent directory permissions
if u have permissions on the file.
22,303
Posted By scripter.online
sqlplus / <<EOF spool test.log select sysdate...
sqlplus / <<EOF
spool test.log
select sysdate from dual;
exit;
EOF


scripter
1,602
Posted By scripter.online
mv SIMPLE\ GRID SIMPLE_PRICE mv ADVERTISED\...
mv SIMPLE\ GRID SIMPLE_PRICE
mv ADVERTISED\ PRICE ADVERTISED_PRICE
Forum: Solaris BigAdmin RSS 07-31-2009
16,492
Posted By scripter.online
Unix Find Command Tutorial
nice information
find some more information about unix find command at

Unix find command with examples and complete options...
Showing results 1 to 25 of 31

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