2,162 reputation
29
bio website e-choroba.blogspot.cz
location Czech Republic
age 37
visits member for 1 year, 4 months
seen 21 hours ago
stats profile views 75

Bash, Perl, Linux. Programming & teaching.


Mar
15
comment Double and triple substitution in bash and zsh
@Profpatsch: Easy. In each step, the number of backslashes halves (so it is 2ⁿ, in fact).
Mar
15
comment Different behavior of $() and ``
To get the expected output, you have to escape the backslash with another backslash in backquotes: echo `eval echo \\$$VAR`
Mar
15
comment Double and triple substitution in bash and zsh
@Profpatsch: Added more examples.
Mar
15
revised Double and triple substitution in bash and zsh
added 138 characters in body
Mar
15
answered Double and triple substitution in bash and zsh
Mar
9
comment Too big delay with xscreensaver on wrong password in OpenSUSE 12.2
I have the same problem. It existed in 12.1 as well.
Mar
8
comment Variable definition changes in Bash
man bash mentions omitting the colon: When not performing substring expansion, using the forms documented below, bash tests for a parameter that is unset or null. Omitting the colon results in a test only for a parameter that is unset.
Feb
21
comment Difference between “. myscript” and “./myscript”
Effectively they do a different thing, try running a script containing exit.
Feb
18
answered remove a char string from a command output (sed, or maybe something else)
Feb
13
revised Ignore all matches to negated extglob pattern in recursive ls
deleted 2 characters in body
Feb
13
answered Ignore all matches to negated extglob pattern in recursive ls
Feb
5
awarded  Good Answer
Feb
3
comment What's the equivalent to && when writing a bash script?
@ruakh: I find the exit status of let x++ for x=0 even worse. But I still use it sometimes. It really depends on what commands you need.
Feb
3
awarded  bash
Feb
3
awarded  Nice Answer
Feb
2
answered How to disable emacs here document completion
Feb
2
answered What's the equivalent to && when writing a bash script?
Feb
1
answered Test if a string has a period in it with bash
Feb
1
answered How to remove all white spaces just between brackets [] using bash?
Feb
1
answered Is it possible to store ssh connection in bash script instead of $(ssh user@ip command) every time?