Search Results

Search: Posts Made By: bombcan
959
Posted By bombcan
awk script help
Hi

I'm running a command and piping it to awk.
I need to pass one of the variables to a date command


ex: cat file|awk {'print $1'}

I need to pass the $1 the date command

Please do...
486
Posted By bombcan
awk script help
Hi

I have a comma delimited file with 2 columns, however I need to manipulate it, in such a way that the first column is horizontal and the second column is underneath it.

text1,123
text2,...
7,316
Posted By bombcan
Thank-You cfajohnson & MadeInGermany for your...
Thank-You cfajohnson & MadeInGermany for your time and these useful posts. They all work great.:)
7,316
Posted By bombcan
Extract multiple strings from line
Hello

I have an output that has a string between quotes and another between square brackets on the same line. I need to extract these 2 strings Example line
Device "nrst3a" attributes=(0x4) RAW ...
785
Posted By bombcan
I figured it out
I figured it out
785
Posted By bombcan
awk question
I have a file that I add up all the same entries in column 1 divide that by 1024 and output the data in column 2. Looks like so
DZ0T,13.8802
I now need to take that number and divide it by a number...
654
Posted By bombcan
Perl help
I am quite new at Perl and I would need some help. I have a csv file which will get created on a monthly basis and have 12 months worth of data in it.

The structure of the csv file is as follows...
2,462
Posted By bombcan
I tried to rearrange the output but now I put the...
I tried to rearrange the output but now I put the actual output on. So to make it easier to understand. So the actual output is what I put. Been trying all sorts of stuff.
I don't use awk that often...
2,462
Posted By bombcan
Having hard time making the NF work. One of my...
Having hard time making the NF work. One of my line of output is
tree 8 vf_MTLHQNASF09_Wkgp3 Agile Delivery Services 2980176 1572864000 79 - /vol/vf_MTLHQNASF09_Wkgp3/Agile...
2,066
Posted By bombcan
This works but why the 2 lines in between? One...
This works but why the 2 lines in between? One would suffice
2,066
Posted By bombcan
Splitting a file into chunks of 1TB
Hi


I have a file with different filesystems with there sizes. I need to split them in chucks of 1TB.

The file looks like

vf_MTLHQNASF07_Wkgp2 187428400 10601AW1
vf_MTLHQNASF07_Wkgp2...
2,462
Posted By bombcan
I did not try #4. I figured that out. What I...
I did not try #4. I figured that out.
What I need to do now is look at the number in my file and determine if it is bigger than 1TB. However it now appears that it won't only be 4 fields. It can be...
2,462
Posted By bombcan
I have another question. In my original awk...
I have another question. In my original awk statement I took for granted that there won't be more that 4 fields. However I ran into a situation where I won't know how many fields there can be. ...
2,462
Posted By bombcan
Thanks I figured it out
Thanks I figured it out
2,462
Posted By bombcan
I want to do this all in the awk command
I want to do this all in the awk command
2,462
Posted By bombcan
Help with awk statement
Hi

I have a file with

test test2 1000000657373
test1 test3 1000003849450
test2 test4 test5 100000837474

I cat the file and pipe it to an awk statement like so

cat /tmp/file |awk '{if...
1,624
Posted By bombcan
BTW I really appreciate your time on this..Thanks...
BTW I really appreciate your time on this..Thanks

You have it right however 5120 is what is assigned then 4% is what is used.
So you have to calculate 4% of 5120 . As for the rest all is good....
1,624
Posted By bombcan
This is good but I think you just added the...
This is good but I think you just added the allocated space. Example for the vgSAP you just added the 5120*2. It's actually 49% of that so 5GB.
1,624
Posted By bombcan
Ok thanks but it still does not add the...
Ok thanks but it still does not add the filesystems in the VG. This is doing each filesystem.
The ones that don't have a VG at the end you can skip.

So just to resume
...
1,624
Posted By bombcan
Thanks for the code however I need it in perl. ...
Thanks for the code however I need it in perl.

And the output would have to add the MB used of all the filesystems in the particular VG (ex:rootvg) and then have a report reporting on

HOST VG...
1,624
Posted By bombcan
Hi Sure anmtl004 rootvg {TOTALSUM} ...
Hi

Sure

anmtl004 rootvg {TOTALSUM}



---------- Post updated at 09:36 AM ---------- Previous update was at 09:36 AM ----------

and so on for all VGs
1,624
Posted By bombcan
Perl script help
Hi

I'm pretty new to PERL so please bear with me:D

I have a df output which I need to add the used of each filesystem

Example:
anmtl004 /dev/hd4 320 37% 4253 8% / rootvg...
761
Posted By bombcan
Perl script help
Hi I have 2 csv files comma delimited. One of the files has a hostname,vg,filesystem, %used.We'll call this one file1. I have another csv file comma delimited with hostname,vg,ldev. We'll call this...
954
Posted By bombcan
Thanks Guys all great examples I have my...
Thanks Guys all great examples I have my choices...Again thanks to all of you
954
Posted By bombcan
Perl script help
Hi

I have an output that looks like this

anmtl117,/dev/hd4,288,24%,4758,9%,/,rootvg
anmtl117,/dev/fslv01,2048,1%,4,1%,/IBMperfpmr,rootvg
anmtl117,/dev/hd11admin,128,1%,5,1%,/admin,rootvg...
Showing results 1 to 25 of 59

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