in reply to Re: re-ordering lines of text in a file?
in thread re-ordering lines of text in a file?
In response to your request ...
The website is http://www.fleetops.net
The tutorial ... a question ... The "arrays" ... input is a fixed expression? By that I mean 'pattern match'. grep for '^green' in a file, that is exactly what you get. The result is the first 'green' starting a line in that file. The problem I face, is the rest of the line. The rest of the line has the "value" of the key-pair.
The key-pairs ( variable = value ) are denoted by the 'equal sign'. Example #1 shieldgeneratortargethardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" " +hp06" "hp07" "hp08" "hp09" "hp10" Example #2 shieldgeneratortargethardpoints = "hp01" "hp02" "hp03" "hp04" "hp05" " +hp06" "hp07" Example #3 shieldgeneratortargethardpoints = "hp07" "hp08" "hp09" "hp10" "hp11" " +hp12" "hp13" "hp14" "hp15"
Notice the variance the values ( number of as well )? I am puzzled how this could ... be input without major problems. The "values" are highly random in 'length/style/number of' terms. That was fatal to bash shell script exact pattern matching.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: re-ordering lines of text in a file?
by poj (Abbot) on Nov 30, 2016 at 18:20 UTC | |
by moddingforfun (Initiate) on Dec 02, 2016 at 14:26 UTC |