Search Results

Search: Posts Made By: Jimbo
8,086
Posted By Jimbo
It would be helpful to see the code you have at...
It would be helpful to see the code you have at this point. If you take substr($0,1,14), that takes the first 14 characters of the line, multiple spaces and all.

Set variables with

myvar=(some...
8,086
Posted By Jimbo
That's not my code. I was just fixing the major...
That's not my code. I was just fixing the major problems while retaining as much as possible of the original code.

When the OP says "column 1", some people may think column 1 of the entire line,...
8,086
Posted By Jimbo
That's not bad, actually - just a couple of...
That's not bad, actually - just a couple of issues ...

awk '{
if (substr($1, 1, 1) != "T" )
print
else
print substr ($1, 1, 14) '\"${proc_dt}\"' substr ($1, 24)
}' infile > newfile

Your...
8,086
Posted By Jimbo
If you have a shell while loop, and within it you...
If you have a shell while loop, and within it you are doing:

echo "$LINE" | awk ...

then you are calling awk 20,000 times, opening your output file 20,000 times etc. Instead, do away with the...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy