added stripping and life example
This commit is contained in:
+1
-2
@@ -108,9 +108,8 @@ BEGIN {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
sub(/\r$/, "")
|
|
||||||
ln = int($1) % 65536; if(NF > 1) $1 = ""
|
ln = int($1) % 65536; if(NF > 1) $1 = ""
|
||||||
gsub(/^[[:blank:]]+|[[:blank:]]+$/, "")
|
gsub(/^[[:blank:]\r]+|[[:blank:]\r]+$/, "")
|
||||||
if(ln > 0) {
|
if(ln > 0) {
|
||||||
if($0 == "" || $0 == ln) delete PROGLINES[ln]
|
if($0 == "" || $0 == ln) delete PROGLINES[ln]
|
||||||
else PROGLINES[ln] = toupper($0)
|
else PROGLINES[ln] = toupper($0)
|
||||||
|
|||||||
Reference in New Issue
Block a user