Search Results

Search: Posts Made By: johnwilliams.sp
3,940
Posted By johnwilliams.sp
Hi, Now is it possible to check whether...
Hi,

Now is it possible to check whether array index has a value in it or empty.

In the code given below,

awk -F , '{a[$2 FS $3 FS $4]+=$1}END{for (i in a) print a[i],i}' sample*.csv

I...
3,940
Posted By johnwilliams.sp
Its works for me anyway. Just curious of knowing...
Its works for me anyway. Just curious of knowing it.

Thanks for your help. :b:
3,940
Posted By johnwilliams.sp
Hi Chris, I have one query here. In a csv...
Hi Chris,

I have one query here. In a csv file all fields are delimited by comma(,).

But in the code you have given,

awk -F, ' '

why does it not take each individaual field in...
3,940
Posted By johnwilliams.sp
Hi Chris, Can you please explain the code....
Hi Chris,

Can you please explain the code. :)
3,940
Posted By johnwilliams.sp
Calculation in Multiple files using awk
Hi All,

I have some 10 files named samp1.csv, samp2.csv,... samp10.csv

Each file having the same number of fields like,

Count, field1, field2, field3.

And a source.csv file which has...
3,110
Posted By johnwilliams.sp
Help in reading a cv file in bash
Hi All,

I am trying to read a .csv file which has some 6 columns.

Eg: samp.csv

one, two, three, four
six, seven, eight, nine

I used the following code,
for line in `cat samp.csv`...
Showing results 1 to 6 of 6

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