Search Results

Search: Posts Made By: prabhat.diwaker
10,555
Posted By prabhat.diwaker
Thanks a lot but the above code is not working...
Thanks a lot but the above code is not working for below input:

"prabhat,kumar",19,2000,"bangalore,India","ABC,DEF"
"prabhat,kumar",19,2000,"bangalore,India","ABC,DEF"

Thank you :)
10,555
Posted By prabhat.diwaker
What if my output should...
What if my output should be"prabhat,kumar"|19|2000|"bangalore,India"

plz help



Please use CODE tags for code, input & output/errors
10,555
Posted By prabhat.diwaker
Hello R.SIngh My Input records in file...
Hello R.SIngh


My Input records in file is"prabhat,kumar",19,2000,"bangalore,India"

While handling in awk with FS=","

My 1st column should be prabhat,kumar
2nd column : 19
3rd column 2000...
10,555
Posted By prabhat.diwaker
Handling Comma in string values in a CSV file
Hi have a comma separated file which has numeric and string columns. String columns are quoted and can have comma in between the quotes. How to identify the columns with FS =","

sample...
2,273
Posted By prabhat.diwaker
awk -F , 'BEGIN{count1=0;count2=0;print "Number...
awk -F , 'BEGIN{count1=0;count2=0;print "Number of empty lines in each file"} NR==FNR{if(NF==0) count1++;f1=FILENAME} NR!=FNR{if(NF==0) count2++;f2=FILENAME}
END{printf...
2,273
Posted By prabhat.diwaker
Writing multiple outputs in to separate cells of CSV file
Hi I am writing a script which has multiple awk statements and each statement gives me a numeric count as an output.
I want those output to be stored in different cells of a csv file.

say 12 awk...
5,478
Posted By prabhat.diwaker
we are running some scripts on the text files.....
we are running some scripts on the text files.. Scripts have been developed by dev team.. we are supposed to just run it and verify the output file.. after running the script on some set of files......
5,478
Posted By prabhat.diwaker
Control characters in UNIX
Hi,

My files are showing some control characters in vi editor

^M
^@ and somtimes
^H

I removed ^M with %s/^M//g command
but how to represent ^@ and ^H
e.g. for ^M it is hold ctrl then v...
2,666
Posted By prabhat.diwaker
thanks both :) :b :b :b
thanks both :) :b :b :b
2,666
Posted By prabhat.diwaker
One little modification :) what if records...
One little modification :)

what if records are not in order and we need to compare them on keys say:

file A

1,kolkata,19,ab
2,delhi,89,cd
3,bangalore,56,ef

File B
2,mumbai,89,gh...
2,666
Posted By prabhat.diwaker
Thanks moderator..!!
Thanks moderator..!!
2,666
Posted By prabhat.diwaker
That is awesome..!! Thanx pamu.! :)
That is awesome..!!

Thanx pamu.! :)
2,666
Posted By prabhat.diwaker
File comparison in UNIX columnwise
Hi all,

I want to compare two files with same number of rows and columns with records in same order.
Just want to highlight the differences in the column values if any.

file A
...
Showing results 1 to 13 of 13

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