Search Results

Search: Posts Made By: Rajakct84
14,831
Posted By Rajakct84
For getting the arguments with 2 digits, You...
For getting the arguments with 2 digits, You should give as below,

echo "10th arg passed is ${10}"
echo "11th arg passed is ${11}"
8,150
Posted By Rajakct84
Try this
Hi,

You can try below,

DB_ERR=`echo "$DB_TRANS" | egrep "[SP2-,ORA-]"`
1,447
Posted By Rajakct84
Database connectivity
Hi All,

How can we access oracle database which is in another server using shell scripts?

Please share your ideas.

Regards,
Raja
6,797
Posted By Rajakct84
grep: can't open /usr/dict/words
Hi All,

If I use the "/usr/dict/words" inside the shell script, It is showing the error as,

grep: can't open /usr/dict/words

How can we resolve it?

Thanks & Regards,
Raja
5,901
Posted By Rajakct84
seq: not found
Hi All,
If I run the script,

for I in $(seq 100)
do
echo -n '='
sleep 0.5
done


It shows error as below,
seq: not found

How this can be resolved?
7,676
Posted By Rajakct84
Thanks Neo
Thanks Neo
7,676
Posted By Rajakct84
nslookup output
Hi All,

If I give the hostname followed by nslookup, I get the output like below,

commandprompt>nslookup efgh

Using /etc/hosts on: xyz
looking up FILES
Trying DNS
Non-authoritative...
5,188
Posted By Rajakct84
printf ${i#${i%?}}
Hi All,

The below script is working fine.
read names
for i in $names; do
printf ${i#${i%?}}
done
echo

May i know, what is the meaning for the "printf ${i#${i%?}}" statement and how it...
Showing results 1 to 8 of 8

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