I have a file containing
ENC0
ENC1
....
how would I read the file contents and assign each line to a variable?
VAR1=ENC0
VAR2=ENC1
VAR3=.....
The lines (enclosure type) vary depending on the SAN type, we could have more than two lines.
I know I could use
awk 'NR==1'
awk 'NR==2'
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
ENC0
ENC1
....
how would I read the file contents and assign each line to a variable?
VAR1=ENC0
VAR2=ENC1
VAR3=.....
The lines (enclosure type) vary depending on the SAN type, we could have more than two lines.
I know I could use
awk 'NR==1'
awk 'NR==2'
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."