Search Results

Search: Posts Made By: vamsikrishna928
2,575
Posted By vamsikrishna928
Thanks everyone for your response. I tried...
Thanks everyone for your response.

I tried with

sed 's/\([^,]\{1,\}\),\1,\{0,1\}//g' file

But the output is coming in such a way that it deletes all the similar strings in a complete row.
...
2,575
Posted By vamsikrishna928
Thanks for the reply.. But the output should...
Thanks for the reply..

But the output should completely eliminate the matching string "e". It output file should be like

a,b,c,d,f,g
2,575
Posted By vamsikrishna928
Deleting consecutive equal values in a file
Hello everyone,

I have a requirement as shown below. I need to delete consecutive same values from the source file and give it as output file.

Source:

a,b,c,d,e,e,f,g

Target:
...
1,070
Posted By vamsikrishna928
Thanks Akshay & Kibou. That code worked! :)
Thanks Akshay & Kibou. That code worked! :)
1,070
Posted By vamsikrishna928
Hi, FileA is having a single column with...
Hi,

FileA is having a single column with 1000 rows.
FileB is having 15 columns with 13000 rows.

Need to compare File A values with FileB, and if that comparing value matches with any of the...
1,070
Posted By vamsikrishna928
Return first two columns if match found among two files
Hi,

I have FileA with one column.
File B with 15 columns separated by comma delimiter.

I need to compare the FILEA value with all 15 columns of FILEB... if matches, need to return the 1st, 2nd...
1,625
Posted By vamsikrishna928
You are correct, thanks to Scrutinizer as well!
You are correct, thanks to Scrutinizer as well!
1,625
Posted By vamsikrishna928
Hi Don, The source file delimiter is changed...
Hi Don,

The source file delimiter is changed from pipeline to comma. Thanks a lot for this code, it worked like a magic :) Thanks again!
1,625
Posted By vamsikrishna928
Thanks for the reply.. Unfortunately, this...
Thanks for the reply..

Unfortunately, this script is not giving results. The output file is empty. Here is the script I use. Please correct me if there is anything wrong.

dos2unix fileA...
1,625
Posted By vamsikrishna928
Returning specific columns upon matching
Hi All,

Need help in this requirement.

I have fileA with one column and fileB with 26 columns.

I need to match the value from fileA with fileB, if matches I have to return that value from...
2,680
Posted By vamsikrishna928
After conversion from Dos2unix, i got the output...
After conversion from Dos2unix, i got the output generated... :) thanks a lot for the quick response.
2,680
Posted By vamsikrishna928
There is no error message, the new file is...
There is no error message, the new file is getting created. But it's an empty file!

grep -wf <server path fileA> <server path fileB> > <server path for new file with 777 permission>
2,680
Posted By vamsikrishna928
Thanks for the reply! This code is not...
Thanks for the reply!

This code is not working in this scenario. I need to search and return the values to the new file. Tried with the below code also, not worked. Please help if awk command or...
2,680
Posted By vamsikrishna928
Single Field to multiple fields searching
I have a fileA with one column (1000 rows), and fileB with 26 columns(13000 rows).
I need to search each value of fileA with fileB and return all the 26 values from FileB to a new file- File C if...
Showing results 1 to 14 of 14

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