Search Results

Search: Posts Made By: bang_dba
1,830
Posted By bang_dba
String to integer
I am on HP-UX using ksh in the script.



MaxSal=`sqlplus -silent /nolog <<EOF
connect / as sysdba
whenever sqlerror exit sql.sqlcode
set pagesize 0 feedback off verify off heading off echo...
7,918
Posted By bang_dba
Thanks bipin It worked.
Thanks bipin
It worked.
7,918
Posted By bang_dba
$ cat test.sql 11042012 ...
$ cat test.sql
11042012

[host32:DEV:/u01/backup]
$ sed 's/\<11042012\>/SUN_11112012/g' < test.sql > test.sql.mod
[host32:DEV:/u01/backup]
$ cat test.sql.mod
11042012
7,918
Posted By bang_dba
sed in HP UX
I am trying to replace a word in a file and rename it ...but this doesn't work in HP UX (11.31)
sed 's/\<11042012\>/SUN_11112012/g' < test.sql > test.sql.mod


The same command on LINUX works...
1,207
Posted By bang_dba
rename file
Hi,

I have files in the format


thread_1_seq_1965.440.755943413
thread_1_seq_1966.577.755943443
thread_2_seq_2034.383.388388888



I want to rename this in the form of

1_1965.arc...
Forum: HP-UX 08-16-2012
3
jdk
2,787
Posted By bang_dba
Thank you for the help. Also, I want to see...
Thank you for the help.

Also, I want to see if the full version of JDK is installed or not. (Not just the jre)
does below o/p mean version of jdk installed ? Is there any other way to figure...
Forum: HP-UX 08-16-2012
3
jdk
2,787
Posted By bang_dba
jdk
How can i see if jdk is installed or not on my system. I am on HP UX B.11.31
1,906
Posted By bang_dba
List the file with a dot
I am on hp-ux and not able to catch the file with dot using a wild card.

$ touch .test

$ ls -l .test
-rw-r--r-- 1 oracle dba 0 Mar 21 05:20 .test


$ ls -l *test
*test...
1,565
Posted By bang_dba
mail file part
hi,

i want to send last 10 lines of a file.. How can acheive that.

i tried this, but it is not working.
mailx -s "$SUBJ" $MAIL_ID < $LOGFILE|tail -10

Can somebody guide me...
2,805
Posted By bang_dba
- ve values
I am using the following code to get the result. But some how i am getting -ve values. Not sure why this is happening.



#!/bin/ksh
u05=0
for k in `find /u05/backup/ -type f -mtime -5 -print...
2,805
Posted By bang_dba
Find the sum of files created 5 days before
Hi,

I want to find the sum of all the files created 5 days ago and store it in a variable. (os is HP-UX)

can this be extracted from ls -l

Is there any other way of getting the sum of all...
910
Posted By bang_dba
add up the used space..
I am trying to write a script to add up the used space on hp unix.

Below is the script what i am trying, but not getting the desired output.

can somebody guide me.



#!/bin/ksh
t1=bdf...
Forum: HP-UX 12-06-2011
5,583
Posted By bang_dba
How to clear keyboard buffer
Hi,

How can i clear the command. Suppose using esc k i retrieved teh command, but for some reason I want to clear and type fresh one... how can i do that.

thx
1,701
Posted By bang_dba
thx for the update.
thx for the update.
1,701
Posted By bang_dba
cron job misfires
I had a one time cron setup yesterday

say for eg.,
22 04 17 11 5 <job>

By mistake i gave 5 instead of 4. This job happened to run withou any problem even though it was wrong day.

I...
1
756
Posted By bang_dba
cron
hi,

how can i replace an existing cron script with a new one.

Is there any other way than copy and paste.

For eg., i have put the cron entries on a file called file.txt, which has the cron...
1,912
Posted By bang_dba
THX. perfect.
THX. perfect.
1,912
Posted By bang_dba
exclude blank line
hi,

how can i exclude blank line along with #, in the below command.
crontab -l|grep -v "^#" |wc -l

thx
1,376
Posted By bang_dba
thank u
thank u
1,376
Posted By bang_dba
select unique
hi,
#cat /u01/file|grep -v "^#"|cut -f2 -d: -s

i want to avoid repeated lines from the output of the above command.

Do we have anyting like unique in shell scripting.

thx
718
Posted By bang_dba
script help
Hi,

i want a script which will read Path from a flat file and check if any file from that folder/sub-folder has a file size greated than 1gb.
As it finds, it will mail to the sysadmin about...
Forum: HP-UX 08-03-2011
35,164
Posted By bang_dba
Space usage in MB or GB
hi,
In HP unix, how can check the space usage in Mb
bdf will give me the output in Bytes i guess.


Also, how can i check the directory size in hp unix.

Thx
Forum: Solaris 07-06-2007
32,459
Posted By bang_dba
How to open Browser
Hi,

I am connecting to the remote machine via Xmanger. How can i ope browser from the termilnal.

I can open gui from my terminal. (xclock works)

Just wondering how to open the browser ?
...
Forum: Solaris 07-06-2007
32,459
Posted By bang_dba
How to open Browser
Hi,

I am connecting to the remote machine via Xmanger. How can i ope browser from the termilnal.

I can open gui from my terminal. (xclock works)

Just wondering how to open the browser ?
Forum: Solaris 07-04-2007
18,351
Posted By bang_dba
Domain name
Hi,

How to set domain name in solaris 5.10 ?

Also what is the command to see the domain name ?
Showing results 1 to 25 of 26

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