Search Results

Search: Posts Made By: Kirands
4,010
Posted By RudiC
The last columns count is giving as 4 which is...
The last columns count is giving as 4 which is absolutely correct as your file has DOS line terminators 0x0D (or <CR> or \r) that result in a non-empty field which is to be counted. Remove those to...
4,010
Posted By vbe
Reminder: We are not here to do the work for...
Reminder:
We are not here to do the work for you, so far in this thread you have not shown what you have tried before opening the thread...
So before posting
You should try to understand what has...
4,010
Posted By RavinderSingh13
Hello Kirands, I am sorry, I couldn't open...
Hello Kirands,

I am sorry, I couldn't open the .rar file. According to your post you need to leave first two lines then let's say we have following Input_file:

Field1 Field2 Field3
XYZ ABC DEF...
4,010
Posted By RavinderSingh13
Hello Kirands, Sorry forgot to mention that...
Hello Kirands,

Sorry forgot to mention that previously, following may help you in same.

awk 'NR==1{OFS=",";for(i=1;i<=NF;i++){Q=Q?Q OFS $i:$i}print Q;next} {for(i=1;i<=NF;i++){array[i]++}}...
4,010
Posted By RavinderSingh13
Hello Kirands, Please use code tags for...
Hello Kirands,

Please use code tags for code/Input/commands which you are using into you posts as per forum rules. Following may help you in same.

awk 'NR==1{print;next}...
Showing results 1 to 5 of 5

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