Search Results

Search: Posts Made By: netmedic
4,718
Posted By netmedic
I'm not sure I can do that. Maybe a little more...
I'm not sure I can do that. Maybe a little more explaining on my part.

The base script is a batch file that sets up the variables and calls several awk programs. (see attached). I have other...
4,718
Posted By netmedic
That looks like it would work. Can you put a...
That looks like it would work. Can you put a variable in the pattern?
4,718
Posted By netmedic
If I do a awk '/SQL-2005-UserDB/ { print }'...
If I do a awk '/SQL-2005-UserDB/ { print }' filename won't that print each SQL-2005-UserDB that is found. I the file its looking at there may be multiple SQL-2005-userDB. Out of all it finds I need...
4,501
Posted By netmedic
I have the output I need I just need to get it...
I have the output I need I just need to get it one two lines. I need:

Select Volume x
Assign K:

On two seperate lines. Right now both are on one line. I thought a semicolon was suppose to...
4,718
Posted By netmedic
AWK Challenge
I have the following text

Microsoft iSCSI Initiator version 2.0 Build 3497

Targets List:
iqn.2001-05.com.equallogic:0-8a0906-daef43402-138000002a4477ba-grsrv12-extra
...
4,501
Posted By netmedic
When I put the following into my code $3...
When I put the following into my code
$3 !~/^[A-Z]$/ { printf "Select %s %s\nAssign %s\n", $1, $2, ENVIRON["BCKDRIVE"] }' FS='[ ]' input
(entered as one line)

I get no output.
4,501
Posted By netmedic
This is what I have $3 !~/^[A-Z]$/ { print...
This is what I have

$3 !~/^[A-Z]$/ { print "Select " $1, $2 "\nAssign " ENVIRON["BCKDRIVE"] }
Still displays everything in one line.

I
4,501
Posted By netmedic
I tweeked some things and I think I got it...
I tweeked some things and I think I got it working but I need help with the output

This is what I got.

$3 !~/^[A-Z]$/ { print "Select " $1, $2 ; print "Assign " ENVIRON["BCKDRIVE"] }
(all on...
4,501
Posted By netmedic
My bad I had a { rather than a [ in the A-Z...
My bad I had a { rather than a [ in the A-Z search. It is working now...

Thanks! I realy appreciate the help.
4,501
Posted By netmedic
It can depending on what volume is being mounted....
It can depending on what volume is being mounted. The only thing that is unique is the one that needs to be mounted does not have a drive letter.
4,501
Posted By netmedic
I ran that and what I get is the following on one...
I ran that and what I get is the following on one line:

Volume 0 Volume 1 Volume 2 Volume 3.

What I need dispayed is only the Volume that does not have a drive letter.
4,501
Posted By netmedic
AWK Problem Need Help!
I have a problem that I have not be able to get solved. First of all the script I am writing is for a Windows server. I am trying to write a script that will connect to a ISCSI SAN and locate the...
Showing results 1 to 12 of 12

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