L
Lei
Greetings
I have a file "file.txt"which look like this:
aaaaaaa 11111 XXXX
bbbbb 222222 YYYYYY
.....
The number of spaces between words are not fixed.
If I want to get $D = "first column word" $E = "second column word"
and discard the last word of the row.
Then continue get DATA from the second row.
What will be syntax be?
I am confused on how to use split and pattern in this case. Thanks a lot
I have a file "file.txt"which look like this:
aaaaaaa 11111 XXXX
bbbbb 222222 YYYYYY
.....
The number of spaces between words are not fixed.
If I want to get $D = "first column word" $E = "second column word"
and discard the last word of the row.
Then continue get DATA from the second row.
What will be syntax be?
I am confused on how to use split and pattern in this case. Thanks a lot