89,201 reputation
12101215
bio website
location European Union
age
visits member for 2 years, 1 month
seen 1 hour ago

Aug
22
revised Cannot access elements of an array in zsh
added 371 characters in body
Aug
22
answered Cannot access elements of an array in zsh
Aug
22
comment how to pass a value to a variable that in a other variable
if you want to write without arrays because you want it to be portable to other shells that don't have arrays, then you can't use ${!var} either which is even less portable. You'll have to resort to eval. If Michael's answer answers your needs, you should accept it (tick next to it).
Aug
22
revised How can I pass a filename containing percent signs (%) as a parameter to a shell script in cron?
formatting, reference to doc
Aug
22
revised How can I pass a filename containing percent signs (%) as a parameter to a shell script in cron?
deleted 40 characters in body; edited tags
Aug
22
awarded  Nice Answer
Aug
22
revised Why does “wc -c” print a value of one more with echo?
add reference to documentation (Unix spec) for the standard SysV/Unix form.
Aug
22
revised Linux: set date through command line
typos, clarify that we're talking of GNU date here.
Aug
22
comment how to pass a value to a variable that in a other variable
Why not use arrays? (h[1]=12 h[2]=13...)?
Aug
22
comment How do I gracefully suspend and resume `cmd1 && cmd2 && cmd3` chain?
@Gilles, sleep is builtin in ksh93 and mksh. Use /bin/sleep for testing.
Aug
21
answered How to mask passwords in 'watch' command?
Aug
21
revised How to echo a bang!
added 71 characters in body
Aug
21
answered How to echo a bang!
Aug
21
revised Why does “wc -c” print a value of one more with echo?
added 163 characters in body
Aug
21
comment Grep does not seem to work properly for me
Does inputfile.txt contain an empty line by any chance?
Aug
21
comment How do I gracefully suspend and resume `cmd1 && cmd2 && cmd3` chain?
@Vi. I agree the behavior is less than ideal, but it's the way it is. In that regard, the (t)csh behavior (where job control comes from) is better IMO: CTRL-Z discards the other actions on the command line.
Aug
21
comment Access Log Timespan
@NecNecco, OK, I've updated the answer to return the first [...] set only.
Aug
21
revised Access Log Timespan
added 19 characters in body
Aug
21
comment Access Log Timespan
(the time span of two access logs rotated by logrorate may actually overlap as well)
Aug
21
answered Access Log Timespan