5,343 reputation
818
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 10 months
seen 5 hours ago

Bash, Perl, Linux. Programming & teaching.


May
10
revised bash using grep and sed
code formatting
May
10
comment Fastest `uniq` tool in linux
Have you tried running them, possibly with time?
May
9
answered How to mark dates which are in the past?
May
7
comment Take a sum based upon particular columns
@terdon: As mentioned in the reply.
May
7
answered Take a sum based upon particular columns
May
7
answered Duplicates in history file even after HISTCONTROL specified
May
6
answered How to delete a line if string is the only thing on the line
May
6
comment Why is this RPM “uninstallable”?
Read the first line again. Or the second one. The RPM is readable, correct arch, good version, but it has a dependency that is not available.
May
2
comment How can I extract the numbers in the file using sed or any other tool?
@Jim: Nothing. That's why you can omit it in some versions of sed. Also, some versions support -r in which you don't have to backslash () and + etc.
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".