Search Results

Search: Posts Made By: AshwaniSharma09
1,906
Posted By AshwaniSharma09
Count and print the most repeating string in each line
Hi all,

I have a file in which each string from column 1 is associated with one or multiple strings from column 2. For an example, in the sample input below, Gene1 from column1 is associated with...
1,927
Posted By AshwaniSharma09
HI guys, I could write a write a script...
HI guys,

I could write a write a script which does the task but the problem is, it works only on the files which are present in the current directory. I need it to be working on subdirectories as...
1,927
Posted By AshwaniSharma09
Rename the files in all the directories and sub-directories
Hi all,

I have more than 12000 files in 46 different directories and each directory has 2 sub-directories named “dat” or “gridded”. Dat sub-directories have files...
4,289
Posted By AshwaniSharma09
When I tried your script it printed 0s and 1s...
When I tried your script it printed 0s and 1s instead of column 3 values. Anyway I followed your suggestion to use R and it worked fine for me. Thanks.
4,289
Posted By AshwaniSharma09
I am taking an example data set here: a ...
I am taking an example data set here:

a a 1
a b 2
a c 4
b a 2
b b 1
b c 7
c a 4
c b 7
c ...
4,289
Posted By AshwaniSharma09
Convert a 3 column tab delimited file to a matrix
Hi all,

I have a 3 columns input file like this:

CPLX9PC-4943 CPLX9PC-4943 1
CPLX9PC-4943 CpxID123 0
CPLX9PC-4943 CpxID126 0
CPLX9PC-4943 CPLX9PC-5763 0.5...
3,290
Posted By AshwaniSharma09
Thanks Guys. pravin27s perl script runs fine too....
Thanks Guys. pravin27s perl script runs fine too. I could see some problem with RudiC's scipt though. Thanks once again. :b:
3,290
Posted By AshwaniSharma09
Thanks bipinajith. It just that its printing...
Thanks bipinajith. It just that its printing non_match files for those combinations also where there is no match.

Also, Could you please help me in making files having combination pairs of...
3,290
Posted By AshwaniSharma09
Compare 2 files and print matches and non-matches in separate files
Hi all,

I have two files, chap.txt and complex.txt.

chap.txt looks like this:

a
d
l
m
r
k


complex.txt looks like this:

a c d e l m n j
a d l p q r
c p r m
.........
1,815
Posted By AshwaniSharma09
Cragun, your script is working fine and gives the...
Cragun, your script is working fine and gives the desired results. Thank you very much.
1,815
Posted By AshwaniSharma09
Thanks for the help but, although it successfully...
Thanks for the help but, although it successfully removes the duplicates in column 1, it does not print last (value) column along.
1,815
Posted By AshwaniSharma09
Remove duplicate nodes
Hi all,

I have a list of node pairs separated with a comma and also, associated with their respective values. For example:

b0015,b1224 1.1
b0015,b2576 1.4
b0015,b3162 2.5...
5,494
Posted By AshwaniSharma09
Thanks Corona688 for the reply. Files containing...
Thanks Corona688 for the reply. Files containing CYTOCHROME C are treating your script very well. Above I took examples of those files which are throwing errors. The only difference here is, I am...
5,494
Posted By AshwaniSharma09
Thank you very much Corona688, you made my day...
Thank you very much Corona688, you made my day :).
This script is working fine when I put it in a shell script like this:

cat temp.sh
awk -F":" '(!RGX) && /CYTOCHROME C/ && (NF==2) {
...
5,494
Posted By AshwaniSharma09
Search for a pattern,extract value(s) from next line, extract lines having those extracted value(s)
I have hundreds of files to process. In each file


I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same...
4,337
Posted By AshwaniSharma09
Match multiple patterns in a file and then print their respective next line
Dear all,

I need to search multiple patterns and then I need to print their respective next lines. For an example, in the below table, I will look for 3 different patterns :

1) # ATC_Codes:
2)...
1,510
Posted By AshwaniSharma09
Thank you guys. I got my results. @vbe -...
Thank you guys. I got my results.
@vbe - Thanks for the reminder. I will keep it in mind next time.
1,510
Posted By AshwaniSharma09
remove values of a file one by one from 2nd file and then print the remaining values of 2nd file
Hi all,

I have 2 files. One contains only 1 column and other one contains 2 columns, let say 1_col.txt and 2_col.txt respectively. Here, I will try to explain with an example.

Input files :
...
8,412
Posted By AshwaniSharma09
Count and print all repeating words in a line
Gurus,

I have a file containing lines like this :


Now, number of words in each line varies. My need is, if a word repeats in a line get it printed. Also total number of repeats.

So, the...
3,246
Posted By AshwaniSharma09
ranjithpr and rdcwayx, thanks to both of you. Its...
ranjithpr and rdcwayx, thanks to both of you. Its running very fast and fine. I am wondering if you could spare few minutes and explain me the logic. Once again, many many thanks for saving my day.
3,246
Posted By AshwaniSharma09
Strings from one file which exactly match to the 1st column of other file and then print lines.
Hi,
I have two files. 1st file has 1 column (huge file containing ~19200000 lines) and 2nd file has 2 columns (small file containing ~6000 lines).
#################################
huge_file.txt...
4,043
Posted By AshwaniSharma09
Guys, I am still in a real fix. All I want is to...
Guys, I am still in a real fix. All I want is to extract column from excel files as it is.
If there are blanks in the column, they should be in the output.:confused:
4,043
Posted By AshwaniSharma09
@Franklin52 : Sorry for being such a pain here...
@Franklin52 :
Sorry for being such a pain here but I really don't know how to do that for more than 1000 files.
I am using Fedora 8.
4,043
Posted By AshwaniSharma09
I simply created a artificial ".txt" file with...
I simply created a artificial ".txt" file with same content what I have given in my 1st post. your script is working very fine on it. But when I convert ".xls" file into ".txt "or ".csv" file, its...
4,043
Posted By AshwaniSharma09
Franklin52 thanks guys for quick replies....
Franklin52


thanks guys for quick replies.
@Franklin52 : yeah, all Input files are excel files. Its (script provided by you) working fine with " .txt " file but not with excel file, I afraid.
...
Showing results 1 to 25 of 26

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