Search Results

Search: Posts Made By: anurupa777
1,622
Posted By anurupa777
Sort the file based on number of occurences
I have a file (input) I want to sort the file based on the number of times a pattern in the first column occurs for example grapes occurs 4 times in combination with other patterns so i want it to be...
1,474
Posted By anurupa777
Ya ill take care of that
Ya ill take care of that
1,474
Posted By anurupa777
Extracting rows and columns in a matrix based on condition
Hi I have a matrix with n rows and m columns like below example. i want to extract all the pairs with values <200.

Input
A B C D
A 100 206 51 300
B 206 100 ...
1,265
Posted By anurupa777
I am really sorry thats my mistake
I am really sorry thats my mistake
1,265
Posted By anurupa777
Assigning the names from overlapping regions
I have 2 files; file 1 having smaller positions that overlap with the positions with positions in file2.
file1
aaa 20 22 apple
aaa 18 25 banana
aaa 12 30 grapes
aaa 22 25 melon

file2
aaa...
990
Posted By anurupa777
Obtain the names of the flanking regions
Hi I have 2 files; usually the end position in the file1 is the start position in the file2 and the end position in file2 will be the start position in file1 (flanks)

file1
Id start ...
5,013
Posted By anurupa777
join -a 1 file1 file2 is printing output on the...
join -a 1 file1 file2 is printing output on the terminal properly but when i redirect the output join -a 1 file1 file2 >output it is not printing the entire columns.

---------- Post updated at...
5,013
Posted By anurupa777
Retain the unmatched columns while joining
I have 2 files

file1
id city car type model
1 york subaru impreza king
2 kampala toyota corolla sissy
3 luzern chrysler gravity falcon

file2
id name rating
3 ...
2,485
Posted By anurupa777
I wanted to run it in server through pbs so i...
I wanted to run it in server through pbs so i included it in perl. ya my perl script is trail.pl
2,485
Posted By anurupa777
since its taking huge time and memory i tried to...
since its taking huge time and memory i tried to include it in perl and run in my server the script is as follows
use strict;
use Data::Dumper;
use Carp;
use File::Basename;

my $path =...
2,485
Posted By anurupa777
ya it crashes on large files. It runs around 15...
ya it crashes on large files. It runs around 15 to 20 minutes. It just says killed nothing more
2,485
Posted By anurupa777
Ya exactly dividing the file would be more hectic...
Ya exactly dividing the file would be more hectic due do my large data set
2,485
Posted By anurupa777
Unfortunately if i am running this its showing...
Unfortunately if i am running this its showing that the process is been killed i tried with the small dataset it gives the desired output.
2,572
Posted By anurupa777
This is the code used for the above mentioned...
This is the code used for the above mentioned purposeawk 'FNR==NR{a[$1]=$0 FS $0;next}{ print $0, a[$1]}' file1 file2 I worked it with text files not sure about csv files
2,485
Posted By anurupa777
Calculating the average of scores
Hi
I have 2 files
file1

aac 23 25
aac 87 90
aac 33 67

file2

23 0.9
24 0.8
25 0.4
........
67 0.55
........



I want to get output as
1,700
Posted By anurupa777
no problem i understood tat
no problem i understood tat
1,700
Posted By anurupa777
hi Thank you. but the problem is i have many...
hi
Thank you. but the problem is i have many files like
1.txt
2.txt
3.txt
4.txt
when the deletion in each these files is done the output should be
new1.txt
new2.txt
new3.txt
new4.txt
1,700
Posted By anurupa777
Deleting lines based on a condition for a group of files
hi
i have a set of similar files. i want to delete lines until certain pattern appears in those files. for a single file the following command can be used but i want to do it for all the files at a...
1,788
Posted By anurupa777
Deleting the unwanted data based on condition
hi
i have my input data like this
aaa bbb ccc
asa dff nmj
mnj saa dff
oik
aax cdx saa
oik
asq sdf dssi want my output file to be like this
mnj saa dff oik
aax cdx saa oiki want to retain...
1,351
Posted By anurupa777
Hi Skrynesaver, For the same problem If the...
Hi Skrynesaver,
For the same problem If the values of Var1 & Var2 are similar for eg
var1 = "203343 2222222222"
var2 = "203342 2222222222"

i want to allow upto one mismatch then how to get it...
826
Posted By anurupa777
Thank you its working well
Thank you its working well
826
Posted By anurupa777
matching the coordintaes between 2 files
Hii
i have 2 files my file1 contains range of values in col 2 and col3. The second file contains the associated names with respect to that particular range i want to check whether values in first...
1,103
Posted By anurupa777
Perl: Problem in retaining values after each loop
use strict;
use warnings;
open (my $fhConditions, "<input1.txt"); #open input file1
open (my $fhConditions1, "<input2.txt");#open input file2
open (my $w1, ">output1");
open (my $w2,...
Forum: Fedora 09-20-2012
3,952
Posted By anurupa777
Try if this works awk 'BEGIN{srand() } {...
Try if this works
awk 'BEGIN{srand() }
{ lines[++d]=$0 }
END{
while (1){
if (e==d) {break}
random = int(1 + rand() * d)
if ( random in lines ){
print...
3,131
Posted By anurupa777
just as an extension for this if i have 2 files ...
just as an extension for this if i have 2 files
file1
grapes bananas 1000000
apples bananas 1999999
mangoes melons 3000000


file2
banans apples 25000
oranges grapes 89989898
apples apples...
Showing results 1 to 25 of 60

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