4,813 reputation
715
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 2 years, 8 months
seen 1 hour ago

Bash, Perl, Linux. Programming & teaching.


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
May
13
revised How to split such a string into array in bash
added 545 characters in body