What's the "for file" thing meant to do? Usually you'd do something like
but I see no values for your 'for'.
Note how the Z immediately after the 'for' doesn't have a $, and also notice how it's followed by the things you want Z to be. You don't appear to initialize file anywhere, either, and that one is not an automatic variable; neither do you list any values that file is supposed to loop through.
I also might suggest simplifying your code a bit... instead of making the whole thing one giant case statement, just check once at the beginning:
Nested case/for/if/etc/ad/infinitums are nasty. Not nesting unless you've got a good reason to can spare you a lot of headaches.
Last edited by Corona688; 08-02-2006 at 08:01 PM..
Okay, so I should give "file" a value by doing something like file=$1 yeah? where should I do that. Am I close to my objective here or way off? Sorry about this it's just taking me a min to get my head round it.
Are you saying I should put the file checking part in a if statement and then the shar part in another?
Is the case section of the script needed? can you see any reason why my script is not expecting a end of line section at the end? please help
Hi everyone!
Ok so I'm trying for the first time to install AIX on a LPAR with NIM.
The NIM:
root@oaexpnimp01(/home/root) # oslevel -s
6100-08-02-1316
I'm trying to install AIX 6.1 TL1. I successfully created a new lpp source
root@oaexpnimp01(/home/root) # lsnim -l AIX61_TL1_2... (10 Replies)
Hi there can anyone help me to spot my mistake and please explain why it appears
My code :
#!/usr/bin/gawk -f
BEGIN { bytes =0}
{ temp=$(grep "datafeed\.php" | cut -d" " -f8)
bytes += temp}
END { printf "Number of bytes: %d\n", bytes }
when I am running ./q411 an411
an411:
... (6 Replies)
Dear Admins,
The SPOT defined in NIM is for aix 5.3 TL 7 . Some of the NIM clients are upgraded to TL 10 . Now the SPOT level is older than the mksysb level.
This will cause problem during restoration of any NIM clients.
Now i want to upgrade SPOT level to TL 10 and redefine the resources... (3 Replies)
HI. there
My 10 servers are running on 6.1-05-03 aix including NIM server
but my user want to update a TL (61-05-03 to 61-06-04)
if I Update a AIx version of TL .. is that change the SPOT of NIM server..
OR if I make a spot of AIX7.1 and Is that support AIX 6.1 AIX 5.3 Images
I... (1 Reply)
Hello im new here and i shot stright with question.
Mainly i wanna ask , how do i search with regexp in one spot and show the whole thing, what im trying to ask is , for eg. i do ls -l, and i see all the info for the dirs and dats. now say i wanna get all the dats that in their name they start... (2 Replies)
Hey
May be a dumb question
Can I use a SPOT which is at 5.3 TL6 to boot an LPAR (with 5.3 TL8) in to maintenance mode? Will it work ?
Is it mandatory that SPOT should be of same or higher version in such case?
Bala (1 Reply)
does somebody know about SPOT ?? any link about SPOT commands ?
i ve made a mistake during configuration, :mad:
then i ve started the system in Maintenance mode
the only shell was SPOT. :eek:
SPOT doesn t understand anything....
how do i work with SPOT ?
thanks in advance
Karine... :D (1 Reply)