Search Results

Search: Posts Made By: timert34
2,677
Posted By timert34
Thanks for your help. Here is what I ended up...
Thanks for your help. Here is what I ended up doing:

{
i = 1
if (NR == 1) {
numfields=NF;
for (i=1; i<=(numfields-1); i++) {
printf "%s\t", $(i) ;
}
printf "%s\n",...
2,677
Posted By timert34
Thanks. Is it possible to make this work without...
Thanks. Is it possible to make this work without knowing how many columns the file has? (i.e. can I put a for loop inside a printf statement?)
2,677
Posted By timert34
fill in last column of data
Hello,

I am fairly new to awk, and I have the following problem.

My file has missing data in the last column, and the program I am pre-processing this file for cannot interpret correctly...
Showing results 1 to 3 of 3

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