5,858 reputation
919
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 11 months
seen Dec 22 at 19:26

Bash, Perl, Linux. Programming & teaching.


Jun
9
comment GREP / SED or AWK: Print entire paragraph in a file on pattern match
@IrfanN: On MSWin, you have to switch quotes perl -ne "BEGIN{ $/ = '' } print if /pattern/".
Jun
9
answered GREP / SED or AWK: Print entire paragraph in a file on pattern match
Jun
8
comment Convert all text from uppercase to lowercase and vice versa?
tr would be more suitable than sed.
Jun
8
answered Sed : Delete between the first n lines the ones with a given string in them
Jun
8
comment Can't search for flags in qalter's man page?
What about man pages of other commands (e.g. ls)?
Jun
8
comment Can't search for flags in qalter's man page?
Works for me, pressing /-r plus Enter.
Jun
6
comment sed's c command outputs current line no matter what
+1 The fact is not mentioned in the man page.
Jun
6
revised What fd's are used when doing diff <(cat old) <(cat new)?
added 42 characters in body
Jun
6
answered What fd's are used when doing diff <(cat old) <(cat new)?
Jun
5
answered To bold one line with Perl regex
Jun
5
revised Is there a way of copying only directories and not files in bash?
added 187 characters in body
Jun
5
answered Is there a way of copying only directories and not files in bash?
Jun
5
answered Apply item replacement inside enumerate in Perl regex?
Jun
3
comment Perl print the lines matching with the columns of file 1 and file2
Remove the not.
May
30
comment Remove given parts of a string with sed?
Usually it's better to use a parser to process HTML.
May
27
answered Clarification on permissions with GID & UID in UNIX
May
22
comment How to print the first three lines and last two lines of a file using perl?
@StephaneChazelas: With the full specification, I can show you how I would do it with a parser. I would need to see the files and understand what elements are needed.
May
22
comment How to print the first three lines and last two lines of a file using perl?
It seems your file is XML. Use a proper parser.
May
22
comment How to mark dates which are in the past?
@evachristine: updated, too.
May
22
revised How to mark dates which are in the past?
added 309 characters in body