Search Results

Search: Posts Made By: dynamax
2,186
Posted By dynamax
I get following error. I am runnning this on...
I get following error. I am runnning this on Solaris 5.9 Generic_118558-29 sun4u sparc SUNW,Sun-Fire-V240

awk '

> $1=="Name" {n=$NF;nc=0;print n;next}t" n " -nos " $3 " to chart ABC;";...
2,186
Posted By dynamax
reading file awk or while
While read line query !!!
Folks,

I am working on a file which has entries as follows. I am using while read line to generate desired output as follows.


filename1:

Name : sdt2156157_ID
...
3,382
Posted By dynamax
Wonderful !!! Thank you kshji. Appreciate your...
Wonderful !!! Thank you kshji. Appreciate your prompt response.

---------- Post updated at 02:26 PM ---------- Previous update was at 12:51 PM ----------

Actually I should have mentioned...
3,382
Posted By dynamax
While read line query !!!
Folks,

I am working on a file which has entries as follows. I am using while read line to generate desired output as follows.


filename1:
Name : sdt2156157_ID
NOS : 4567 [...
4,416
Posted By dynamax
perl Net::SNMP version getting info from cisco switch
I am having trouble working with SNMP module with perl. I am trying to get SNMP version of target system. I use following code to get it however it resturns error as "Argument "v6.0.1" isn't numeric...
8,343
Posted By dynamax
Here is pic of what I am expecting
Here is pic of what I am expecting
8,343
Posted By dynamax
awk to create two HTML Tables
I am working on awk script to generate an HTML format output. With input file as below I am able to generate a HTML file however I want to saperate spare devices in a different table than rest of...
2,720
Posted By dynamax
Thanks Shamrock ! That helps. ----------...
Thanks Shamrock ! That helps.

---------- Post updated at 02:33 PM ---------- Previous update was at 02:27 PM ----------

Is there any way I can capture the DiskGroup ID. i.e. if I grep for disk...
2,720
Posted By dynamax
Hi corona in k shell your code works fine but...
Hi corona in k shell your code works fine but does not exit I have to type quit to exit.


# ex -s +"/Equalizing/-1 | /Offline/-1 | q!" disk_tmp

Bus 7 Enclosure 0 Disk 8





:q!

test...
2,720
Posted By dynamax
# ex -s +"/Failed/-1 p | /Offline/-1 p | q!"...
# ex -s +"/Failed/-1 p | /Offline/-1 p | q!" disk_tmp
-bash: !": event not found


---------- Post updated at 02:01 PM ---------- Previous update was at 01:55 PM ----------

Thanks shamrock for...
2,720
Posted By dynamax
Script with awk and grep
Hi .. I am working on a shell script to do following task. I have Input file as follows. I have to find failed or Offline disk and run command # hic -ip 172.124.24.59 getlogicalgrp |grep -B10...
1,921
Posted By dynamax
Thanks fpmurphy !! This is counter question...
Thanks fpmurphy !!

This is counter question to earlier

If a line has more than 7 fields then value in field 7 onwards is BHA_GRP1, BHA_GRP2, BHA_GRP3, BHA_GRP4 etc.
Here is example of what I...
1,996
Posted By dynamax
number of fields in a text file as a variable - perl
I am looking for perl code to get following o/p. If a line has more than 7 fields then value in field 7 onwards is BHA_GRP1, BHA_GRP2, BHA_GRP3, BHA_GRP4 etc.
Here is example of what I am trying to...
1,921
Posted By dynamax
print the number of fields in each line
I am looking for equivalent of following awk command in perl

[root@swa-rndpoc tmp]# awk '{ print NF ":" $0 } ' junk1
8:VAH NIC_TYPE CONFIG SIZE_GB PILO KOM BHA_GRP DESCR
8:2 ...
2,675
Posted By dynamax
grep in perl code not working
I am creting a script to delete files from /tmp directory. I have following code but fails to find file name start with id 2754.

What is wrong in : grep { /^(new_grp*|^$fleidb\_*/)/ }...
2,804
Posted By dynamax
what is the alternative option. I don't like...
what is the alternative option. I don't like using STDOUT it directs everything to that file.
2,804
Posted By dynamax
Redirect the output in a file and on screen
I am trying to get following result from the scipt I have. First time it generates the o/p in correct format. However if I run it again it appends to the existing file. I would like to see o/p on...
1,498
Posted By dynamax
forming group script from a text file
I am trying to make group of number of ID's. I have prepared following perl script but it does not provide any output.

INPUT File
0174
0175
0176
0177

CODE:

#!/usr/bin/perl -w
$memlst =...
2,123
Posted By dynamax
Thank you mirni !!! that works like a charm. You...
Thank you mirni !!! that works like a charm. You are really champion of scripting.

---------- Post updated at 09:18 PM ---------- Previous update was at 02:23 PM ----------

Hi Mirni,

How...
1,798
Posted By dynamax
Thanks Chirel and birei. That was incredible!!!
Thanks Chirel and birei. That was incredible!!!
2,123
Posted By dynamax
Perl verify if numbers in a column of a file are in sequence
I am just a newbie to perl scripting. I need help with listing of hexadecimal numbers in a column as follows.

INPUT FIle:

08AF ship steel
08B0 ship steel
08B1 ship steel
08B2 ...
1,798
Posted By dynamax
Hi Chirel. Here is the input format and...
Hi Chirel.

Here is the input format and expected output.

Input File -- mentioned in $chpdvlst
289B ship N-grp 123
289C ship N-grp 123
289D ship N-grp 123
2CE1 flight N-grp 123
2CE2...
1,798
Posted By dynamax
Perl matching values in a file
I am trying to match first 5 values of $passt variable in a file $chpdvlst and then verify that value in $grp parameter I want first 5 values which has $vaht - ship and $grp = N-grp. Somehow script...
4,178
Posted By dynamax
that worked.... thanks birei !!!!
that worked.... thanks birei !!!!
4,178
Posted By dynamax
birei here is the code with line nos. ...
birei here is the code with line nos.


sub freecnt{
open (PEROUT, "<$grplst") || die ("can not open file!");
while ($LINEIN3 =<PEROUT>)
{
...
Showing results 1 to 25 of 35

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