5,918 reputation
1019
bio website e-choroba.blogspot.cz
location Czech Republic
age 38
visits member for 3 years, 1 month
seen 18 hours ago

Bash, Perl, Linux. Programming & teaching.


Jan
5
comment optimisation of bash globs
You can remove .* from the beginning and end of each regex.
Dec
29
awarded  Yearling
Dec
22
comment Execute command within variable
missing closing double quote.
Dec
13
awarded  Enlightened
Dec
13
awarded  Nice Answer
Dec
2
comment Shell glob expansion after loop variable substitution
How does it "not work" at the moment?
Nov
28
comment How do I use newlines inside () with sed?
@DisplayName: But it's a command substitution again, so it removes the trailing newlines...
Nov
28
comment How do I use newlines inside () with sed?
@DisplayName: Misplaced }: sqlinsertconvert8=$(echo "${sqlinsert8%:}" | sed la | sed '/kal/d')
Nov
28
comment How do I use newlines inside () with sed?
@DisplayName: Missing right }.
Nov
28
comment How do I use newlines inside () with sed?
@DisplayName: What do you mean? You can assign the substitution to a variable: y=${x%:}
Nov
28
comment How do I use newlines inside () with sed?
@jimmij: This will keep all the trailing newlines. If you don't want two of them, don't output them. Or, remove the last one, too: "${x%$'\n':}" (bash syntax).
Nov
28
answered How do I use newlines inside () with sed?
Nov
28
revised iterate lines containing zeros in bash
added 77 characters in body
Nov
28
answered iterate lines containing zeros in bash
Nov
26
answered Cycling through the *Buffer List* with C-n, C-p
Nov
26
comment How to test for unknown commands in shell script?
@Minix: In the extreme example I gave in my reply, how can you check with type when you don't know what a user will type in?
Nov
26
comment How to test for unknown commands in shell script?
@Minix: Without running a script, you can't tell what commands will be needed.
Nov
26
answered How to test for unknown commands in shell script?
Nov
26
comment Confusion about basic bashscript loop - until/done
@USERID_UNK: man bash of course, maybe also Bash Hackers or Advanced Bash Scripting Guide.
Nov
26
comment Confusion about basic bashscript loop - until/done
@USERID_UNK: I see it in the terminal, it goes to the standard error.