Link to home
Start Free TrialLog in
Avatar of peledc
peledc

asked on

ksh script to anlyze rows in file

Hi,

I have a file with many rows.
Each row contains many words separated by blanks.
I am looking for a script to do the following:

For each line
  VAR1 = the first word (untill the first blank);
  VAR2 = the rest of the line (without the first word);
end;

Thanks
ASKER CERTIFIED SOLUTION
Avatar of yurisk
yurisk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops , of course in "print" commands the array name should be 'massa' as well.