Search Results

Search: Posts Made By: pawannoel
7,786
Posted By pawannoel
ok so I'm providing 2 new files : file3 and...
ok
so I'm providing 2 new files : file3 and file4 with your suggestions
file3
Experiment Name,ABC_07/28/15
Specimen Name,Specimen_001
Tube Name,Unstained Control
Record Date,"Jul 28, 2015...
7,786
Posted By pawannoel
My bad sorry. when I open these files on...
My bad sorry.
when I open these files on notepad, I only see line 8 to have the comma in the end
I don't mind any solution as long as it works.
Thanks
7,786
Posted By pawannoel
Extracting data from specific rows and columns from multiple csv files
I have a series of csv files in the following format
eg file1
Experiment Name,XYZ_07/28/15,
Specimen Name,Specimen_001,
Tube Name, Control,
Record Date,7/28/2015 14:50,
$OP,XYZYZ,
GUID,abc,...
1,282
Posted By pawannoel
OK ... the input for example is : "029/A" ...
OK ... the input for example is :
"029/A"
"029/a"
"29 /A"
"029/M"
"029/m"

and the desired output should be
29
29
29
2.4
2.4

Thank you
1,282
Posted By pawannoel
Editing strings within lines of file
Dear All,

I have a file which contains a column with age, which is represented in two following patterns

1. "007/A" or ''007/a" or ''7 /a" ..... In this case A or a means year and I would like...
3,786
Posted By pawannoel
Thanks ever so much Bartus You ROCK !! ...
Thanks ever so much Bartus
You ROCK !!
Cheers
Good day :)
3,786
Posted By pawannoel
Hi Bartus, That worked nicely, cheers. My real...
Hi Bartus, That worked nicely, cheers.
My real problem is about handling 2 arrays and making other arrays from them
For example @arrchr = qw(chr02 chr02 chr02 chr02 chr02 chr03 chr03 chr04 chr04...
3,786
Posted By pawannoel
Help with replacing Array elements
Hi,
I have an array containing following sample information
@array = qw (chr02 chr02 chr02 chr02 chr02 chr03 chr03 chr04 chr04 chr05 chr05 chr05 chr07 chr07) I need to replace all duplicate...
4,248
Posted By pawannoel
Help with Plotting a graph using Perl
Dear all,
I have a hash in my data file and I'd like to output the data contained within as a graph (can be lines or histogram form) but I dont know how to do this with Perl.
Can somone suggest how...
1,185
Posted By pawannoel
Help with printing sorted array of numbers
Dear All,
I am trying to sort an array of numbers to retrieve the mimimum and maximum values of numbers in that array, by printing the first and last elements of the sorted array. My code is ...
1,539
Posted By pawannoel
I tested ... it works .... JUST ONE DOT was...
I tested ... it works .... JUST ONE DOT was missing ...cant beleive!!!
Its a concatenation operator of lines in this case right ??
Cheers Master ;)
Hv a nice weekend :)
1,539
Posted By pawannoel
Thanks for the tip about indenting and your input...
Thanks for the tip about indenting and your input ... Yeah its very important to have a clean readable code ... by the way I had to change above code for following lines as follows to get the...
1,539
Posted By pawannoel
@Bartus I have 2 questions about a script...
@Bartus
I have 2 questions about a script relating to the parts in red
1. How can I combine the two IF statements in the WHILE loop so that I get output only if those conditions are met.
2. How...
1,539
Posted By pawannoel
Got that in the loop ... works great !! can you...
Got that in the loop ... works great !! can you please explain how $a cmp $b works here ??
Cheers bartus:)
1,539
Posted By pawannoel
Sure sample data in the hashSK1.scplasm1 1 ...
Sure
sample data in the hashSK1.scplasm1 1
SK1.chr06 1
SK1.chrm 2
SK1.chr08 2
SK1.chr07 2
expected output after sort
SK1.chr06 1
SK1.chr07 2
SK1.chr08 2
SK1.chrm ...
1,539
Posted By pawannoel
Help with printing sorted expression
Hi All,
How can I print the sorted results of the following expression in Perl ??
print "$i\t$h{$i}\n";
I tried
print (sort ("$i\t$h{$i}")"\n"); and other variations of the same but failed.
Can...
1,147
Posted By pawannoel
@DGPickett: This is not homework ... I have a...
@DGPickett:
This is not homework ... I have a personal interest in learning Perl as a skill to get some data analysis done in my routine work.
At the moment my code has two separate IF loops within...
1,147
Posted By pawannoel
Help with Perl If statement
Hi All,
I am writing a perl script where I take 2 variables from the user as STDIN to scan the lines of a file to produce as output.

How can I do an IF loop to test this for example in the mock...
19,346
Posted By pawannoel
Thanks Bartus, I was so close to cracking this...
Thanks Bartus,
I was so close to cracking this on my own,
I had figured out the first 2 new lines in the code but was not figuring out the if conditional loop you provided ... cheers and thanks a...
19,346
Posted By pawannoel
@fpmurphy...
@fpmurphy (https://www.unix.com/members/31298.html)
I did try mate but couldnt figure it out and thus the post.
Cheers anyway
19,346
Posted By pawannoel
Help with modifying script
Hi All,
I want to make some changes in a code here https://www.unix.com/302508078-post55.html
So basically I want to input a coverage value of choice and report the results of the above code only...
1,510
Posted By pawannoel
Thanks but how do I do this ? ... I'm a Unix...
Thanks but how do I do this ? ... I'm a Unix beginner so I will appreciate your input on this
Cheers:)
1,510
Posted By pawannoel
Help with defining PATH
Hi All,
I have a trivial question but I dont know how to solve it.
So basically I'm working on a USB key and I have a directory with some scripts which I use to work on files present in other...
1,604
Posted By pawannoel
I was going to suggest paste file1 file2 But...
I was going to suggest paste file1 file2
But didnt know about -d option to introduce the commas
Cheers Franklin
1,691
Posted By pawannoel
Can someone tell me where I can find all the ANSI...
Can someone tell me where I can find all the ANSI codes for text editing ? I'm really new to all this so I'll appreciiate your input :)
Cheers
Showing results 1 to 25 of 164

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