btriggs127
Technical User
I am building a new file from 2 others. File1 has 8 lines, 1 Line needs the 11th and 15th field changed. That part I have. But now bring in File2, a list with 3 columns. File2.column1 needs to go into the 11th field, and File2.column2 will become the name of File3. I use C, Perl, AWK, and Different shells on my Linux Box at home, but here I use Win2K and the Awk32 Windows app, and no other programming languages. This will be used to mass create Remedy Macros for managers to see who is creating tickets every month. Sample code is as follows:
{
{if ($1 ~ /Query/ ) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,"\"%NAME%\"", $12, $13,$14,"\"NAME\"",$16,$17,$18,$19,$20,$21,$22;else print $0}
}
That above code does the switching of the 2 fields, however I have over 100 Names to sort through in File2 and do not want to manually add them.
Any help is greatly appreciated.
Thanks
{
{if ($1 ~ /Query/ ) print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,"\"%NAME%\"", $12, $13,$14,"\"NAME\"",$16,$17,$18,$19,$20,$21,$22;else print $0}
}
That above code does the switching of the 2 fields, however I have over 100 Names to sort through in File2 and do not want to manually add them.
Any help is greatly appreciated.
Thanks