Search Results

Search: Posts Made By: sncoupons
1,704
Posted By sncoupons
How to consolidate values in one column from different rows into one?
Hi Guys,

Thank you all for helping me with my different queries and I continue to get better at scripting because of help from all of you!

I have a file that would look something like -

...
3,478
Posted By sncoupons
Thank you all for awesome suggestions!
Thank you all for awesome suggestions!
3,478
Posted By sncoupons
How to sort values inside one column?
Hi,

Could someone please help me with this? I have a text file that has fields seperated by comma. The last column in it has multiple values seperated by "|". I need to sort values in the last...
44,230
Posted By sncoupons
How to find difference between two arrays in Perl?
Hi,

Could someone please help me with this? I have two arrays and I need to generate third array containing difference between the two. For example -

@Array1 = [1,5,15,20];
@Array2 =...
52,750
Posted By sncoupons
Thank you folks for your help. vidyadhar85...
Thank you folks for your help.

vidyadhar85 - Your solution worked perfectly. I went ahead with your solution.

summer_cherry - Thank you for your help too. Somehow the file would not print the...
52,750
Posted By sncoupons
this doesn't generate any output :( ...
this doesn't generate any output :(

---------- Post updated at 06:17 PM ---------- Previous update was at 06:10 PM ----------

Please help!!
52,750
Posted By sncoupons
How to compare two columns in two files?
Hello all,

Could someone please let me know shell script or awk solution to compare two columns in two files? Here is the sample -

file1.txt

abc/xyz,M1234
ddd/lyg,M2345
cnn/tnt,G0123

...
8,526
Posted By sncoupons
I can't use diff. I need to find those entries in...
I can't use diff. I need to find those entries in File2 that are present in File1. They may not be in the same order. Please check expected output I have provided and input files.

Thanks for...
8,526
Posted By sncoupons
Compare lines in two files (Memory getting exhausted)
Hi,

Could someone please help me with the best approach to compare lines from one file to another? Here is how I have entries -

File 1

a1
a2
a3
a4
a9
a10
a15


File2

a5
a6...
6,706
Posted By sncoupons
I need to generate the output same as earlier...
I need to generate the output same as earlier described -


Task Min Max Avg


However, the input file is going to have task id as well and separated by a "|" that...
6,706
Posted By sncoupons
Thanks a lot. For my own learning, if I add one...
Thanks a lot. For my own learning, if I add one more column as following

id task time
1 abc 11
2 abc 14
3 xyz 10


How would the script variable...
6,706
Posted By sncoupons
HELP! Group by in shell script (awk/sed?)
Hello,

Could some expert soul please help me with this? I have following file format -

task time
abc 5
xyz 4
abc 5
xyz ...
Showing results 1 to 12 of 12

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