Search Results

Search: Posts Made By: vukkusila
5,000
Posted By vukkusila
distinct values of all the fields
I am a beginner to scripting, please help me in this regard.

How do I create a script that provides a count of distinct values of all the fields in the pipe delimited file ? I have 20 different...
2,042
Posted By vukkusila
distinct values of all the fields
I am a beginner to scripting, please help me in this regard.

How do I create a script that provides a count of distinct values of all the fields in the pipe delimited file ? I have 20 different...
10,126
Posted By vukkusila
Remove all instances of duplicate records from the file
Hi experts,
I am new to scripting. I have a requirement as below.

File1:

A|123|NAME1
A|123|NAME2
B|123|NAME3

File2:

C|123|NAME4
C|123|NAME5
D|123|NAME6

1) I have 2 merge both the...
2,614
Posted By vukkusila
i think i got it
awk 'BEGIN{OFS=FS=","}{$4=$5=$19=""}{print}' input.csv > output.csv
2,614
Posted By vukkusila
Replace 3 fields with null in the file
Hi,
I have a file with 104 columns delimited by comma.

I have to replace fields 4,5 and 19 with null values and after replacing the columns in the file , the file should be still comma delimited....
10,482
Posted By vukkusila
I think this will work
$ awk -F" " 'BEGIN{printf "%s %s %s\n", "FIRST_NAME,", "LAST_NAME,","MAIL_ID"} /key1/{print $2,",",$3,",",$4}' test.txt > test.csv
7,184
Posted By vukkusila
returning always 1
Thankx for the reply,

I tested this with duplicate values and also unique muliple values in the column of the file and its always returning 1

data in the file

,,02132007
,,03132007
...
7,184
Posted By vukkusila
I need to extract last column of a file and compare the values
Hi,

I am new to unix and I need help in solving below mentioned issue, really appreciate ur help.

I have a file

sam, john, 2324, 07142007
tom, thomson, 2343, 07142007
john, scott, 2478,...
Showing results 1 to 8 of 8

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