Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: momin
5,822
Posted By momin
Thanks neutronscott. After adding up the two...
Thanks neutronscott.

After adding up the two columns with rdcwayx's command, I had the output in form of one column. That column can have 15,16 or any number of values. My question was how to get...
5,822
Posted By momin
Hi rdcwayx, You rock, it works!! :) ...
Hi rdcwayx,

You rock, it works!! :)

Thanks a bunch,
Momin

---------- Post updated at 02:28 PM ---------- Previous update was at 11:53 AM ----------

The output column in the solution...
5,822
Posted By momin
Help needed with multiplying two values of two columns in a file
Hi, I am trying to multiply column#1 with column#2 using a shell script. How can I make a for-loop script using 1st column as "i" and the second column as "j" from the following file? Please feel...
767
Posted By momin
Thanks. I am using ksh on Solaris10 The output...
Thanks. I am using ksh on Solaris10
The output I get is:


# ldm ls-bindings | grep "^CORE" | awk 'NR==6{print $1}'
#


Also:

# ldm ls-bindings | grep "^CORE" | awk 'NR==2{print $1}'
CORE...
767
Posted By momin
Thanks a bunch... the output is still not the one...
Thanks a bunch... the output is still not the one I desire. I get this:


root# ldm ls-bindings | awk '/CORE/{getline;getline;print $1}'
0
1
2
3
4


any idea how this command can be...
767
Posted By momin
help with grep
Hi Folks, I am trying to create a report where I have to grep the number of CPU cores from the following output:


DEPENDENCY
master=

CORE
CID CPUSET
1 (8, 9, 10, 11, 12,...
Forum: Solaris 05-18-2012
1,277
Posted By momin
need help with message: no patches installed
Hi Folks,

I am getting the following error when trying to see installed patches on my Solaris 9 system :wall:


# patchadd -p

No patches installed
#


Any help will be much appreciated
...
Forum: Solaris 05-07-2012
2,400
Posted By momin
Try the following commands out, and let us know...
Try the following commands out, and let us know if vi editor becomes more user-friendly:

#TERM=vt100 ; export TERM
#EDITOR=vi ; export EDITOR
#clear

Cheers
Momin
627
Posted By momin
Thanks :D
Thanks :D
627
Posted By momin
Help needed with output-redirection based on output-messages
Hi Folks,

Scenario:
I used the following shell script to see ping status, and got a report out of that based on the standard output value, and it worked:

for i in `cat /tmp/momin/servers`
do...
Forum: Solaris 03-09-2012
4,873
Posted By momin
gr8! Thanks for pointing out. Enjoy your...
gr8! Thanks for pointing out.

Enjoy your weekend :)
Forum: Solaris 03-09-2012
4,873
Posted By momin
Thanks for the input Dave! Tried that using...
Thanks for the input Dave!

Tried that using in the script and was able to login into the console of Guest LDom but the script is not able to execute commands within the Guest LDom, the rest of the...
Forum: Solaris 03-09-2012
1,903
Posted By momin
start with command: du -sh * Find the biggest...
start with command: du -sh *
Find the biggest files from the output and compress them to start with!
Let us know if you have any further difficulty ...

Once you free up some space, you can...
Forum: Solaris 03-09-2012
4,873
Posted By momin
Help needed - trying to run commands in Guest LDoms from Control LDOM
Hi Folks,

I am used to writing scripts to get info by running commands at local zones level from their respective global zone by using zlogin <localzone> "command>" while remaining at the global...
Forum: Solaris 01-25-2012
10,622
Posted By momin
Try these commands step by step and see if you...
Try these commands step by step and see if you can see the new LUN in the format output. Let us know...


#cfgadm -al

#devfsadm -C

#devfsadm -c disk


Momin

---------- Post updated at...
1,105
Posted By momin
Looking for help with script to assign all disk space to slice#0 on multiple disks of varying sizes
Hi Folks,

I am trying to make a script to assign all diskspace to slice 0, on multiple sized disks. Since the disks are new they may need to be labelled also to avoid the error: Cannot get disk...
Forum: Solaris 10-14-2011
1,699
Posted By momin
Looking for help with Solaris bootable CD
Hi Folks,

I persued my cousin to purchase couple Sun boxes to learn Unix. He is downloading the media but the CD he burns with the downloaded ISO does not remain bootable :wall:
He is lives in...
2,409
Posted By momin
Thanks for both the replies and making it work...
Thanks for both the replies and making it work for me!
Salute! :b:
2,409
Posted By momin
help needed with shell script to append to the end of a specific line in a file on multiple servers
Hi Folks,

I was given a task to append three IP's at the end of a specific (and unique) line within a file on multiple servers.

I was not able to do that with the help of a script. All I could...
886
Posted By momin
Thanks ... will try and update :)
Thanks ... will try and update :)
886
Posted By momin
Help with script checking for a file in various servers
I am trying to write a script that checks whether or not, a file exists on multiple servers.
My code / logic so far is:

#!/usr/bin/ksh

print "Enter File name to be checked"
read MYFILE

ssh...
Forum: HP-UX 02-14-2011
2,158
Posted By momin
Got the answer. Please close thread. Thanks
Got the answer. Please close thread.
Thanks
Forum: HP-UX 02-11-2011
2,158
Posted By momin
Help with firmware upgrade on blade BL870c
Hi gurus,

I was more on the Sun side and now am getting exposure to the HP-UX side of the world. I have to upgrade firmware on BL870c blade.

Can some one point to a url or give procedure to...
718
Posted By momin
This is what I am getting: # awk -v t=$today...
This is what I am getting:
# awk -v t=$today 'NR==3 { d=substr($1,1,8);i=substr($1,9,2); $1=(t==d)?d i+1 ";" :t "01;" }1' db.gprs > tmp
bash: tmp: cannot overwrite existing file
#

Can you...
5,835
Posted By momin
cd /home/david/lab3 for i in ls *.save do ...
cd /home/david/lab3
for i in ls *.save
do
cp $i /home/user113/lab3
done

^^^ above will also work if you modify the 1st line by adding 'tics':
for i in `ls *.save`

Cheers
Momin
Showing results 1 to 25 of 43

 

Featured Tech Videos

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