4,440 reputation
714
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 7 months
seen 2 days ago

Bash, Perl, Linux. Programming & teaching.


May
2
answered How can I extract the numbers in the file using sed or any other tool?
May
1
answered What is the difference between invoking a perl script via sh or perl
Apr
8
comment File has bytes - appears to be empty
These things can happen e.g. if two processes write to the same file.
Apr
8
answered File has bytes - appears to be empty
Apr
2
answered How to replace a custom date string in a text file
Apr
1
comment A bash function that takes argument like other languages?
What "other languages"?
Mar
27
revised Extract part of string using grep
deleted 1 characters in body
Mar
27
comment Merge fields in a file
@Ron: The last call prints the last line. The script does not work with your latest sample input, though, as the format has changed significantly.
Mar
26
comment Merge fields in a file
@Ron: No. Only a scalar corresponds to a key. And, in Perl, a list and an array are different things.
Mar
26
comment Merge fields in a file
@Ron: Hash of arrays is a nested structure. Hash slice is just a list of hash values corresponding to a list of keys.
Mar
26
comment Merge fields in a file
@Ron: It's called a "hash slice".
Mar
23
answered Bash script is not working
Mar
23
comment Merge fields in a file
@Ron: Updated the answer according to the new spec.
Mar
23
revised Merge fields in a file
updated
Mar
22
comment Merge fields in a file
@Ron: I probably do not fully understand the specification. If the END came from the second row, where would the attribute come from?
Mar
22
comment Merge fields in a file
You keep the last line in %previous if it is an exon. If the current line is an exon, too, you compare their intervals and forget the previous one if it is part of the current one.
Mar
21
answered Merge fields in a file
Mar
19
answered How can I pass argument stored on a variable to WGET
Mar
5
answered what are some uses of .(single period) & ..(double period) in the shell command line
Feb
26
reviewed Edit suggested edit on How to customize or reprogram function of specific keys on my keyboard and the LED on my laptop