3,635 reputation
412
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 3 months
seen 3 hours ago

Bash, Perl, Linux. Programming & teaching.


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
1
comment A bash function that takes argument like other languages?
What "other languages"?
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
comment Merge fields in a file
@Ron: Updated the answer according to the new spec.
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.
Feb
4
comment perl one liners + match word and delete string after separator
@Eytan: See my update in the answer.
Feb
4
comment perl one liners + match word and delete string after separator
@Eytan: Removing the ^ would match Secret_Password. That's not what you want. Just add "optional spaces": ^ *Password, or even ^\s*Password if there can be tabs and other whitespace, too.
Jan
20
comment Too big delay with xscreensaver on wrong password in OpenSUSE 12.2
See also unix.stackexchange.com/q/40954/13792
Jan
20
comment Too big delay with xscreensaver on wrong password in OpenSUSE 12.2
passwdTimeout seems to indicate how much time you have to enter the password (setting it to lower numbers speeds up the vertical bar), not the delay on wrong password.
Dec
9
comment When did Automake switch to using Perl
And whatever user54129 might think about Perl, shell is probably not a better language.
Nov
15
comment How to recover files I deleted now by running rm *?
Checkout them from the version control system you use. You use one, right?
Nov
8
comment Automatically save bash command history in screen session
askubuntu.com/questions/261407/…
Nov
7
comment Bash newline doesn't print
By echo "$(cat $outputFile)$latexString" > $outputFile, do you mean echo "$latexString" >> $outputFile?
Sep
17
comment Copy all dotfiles except for `.git` and `..`
@dotancohen: Seems very strange. It does something else.
Sep
17
comment Copy all dotfiles except for `.git` and `..`
@RahulPatil: Have you tested with the second pattern which excludes .?
Sep
17
comment Copy all dotfiles except for `.git` and `..`
@RahulPatil: So what?