Reputation
106,481
Next tag badge:
972/1000 score
232/200 answers
Badges
13 128 265
Impact
~3.6m people reached

Feb
22
comment How to match * with hidden files inside a directory
.foo matches both .[^.]* and .??*. You want {.[!.],..?,}*.
Feb
22
comment How to match * with hidden files inside a directory
That only works in zsh and pdksh/mksh. Other shells include . and .. in their expansion of .*.
Feb
22
revised How to match * with hidden files inside a directory
added 57 characters in body
Feb
22
comment How to match * with hidden files inside a directory
.??* fails to match .a, .b... .[^.]* fails to match ..foo.
Feb
22
answered How to match * with hidden files inside a directory
Feb
22
comment Why `until` block is designed as it is just a negative version of `while`?
You must be confusing with C or perl. Shells don't have such statements.
Feb
22
answered Why `until` block is designed as it is just a negative version of `while`?
Feb
20
answered How to format decimal number to display the preciding zero but not the trailing ones?
Feb
20
comment How to format decimal number to display the preciding zero but not the trailing ones?
%.3g gives "100" for "100.1" and "1e+03" for 1000 though.
Feb
20
comment How to format decimal number to display the preciding zero but not the trailing ones?
Use awk instead of bc.
Feb
20
revised Programatically use visudo to edit sudoers?
added 1 character in body
Feb
20
comment Programatically use visudo to edit sudoers?
@Tarrasch, indeed. I had completely forgotten this answer when answering that one (where I point out that VISUAL takes precedence over EDITOR).
Feb
16
awarded  Popular Question
Feb
13
revised Is it possible to compress a very large file (~30 GB) using gzip?
added 10 characters in body
Feb
13
comment Processing input line by line (with empty lines) from shell
You may want to have a look to Why is using a shell loop to process text considered bad practice?
Feb
13
answered for loop over a list
Feb
13
revised scripting- Ignoring a variable when undefined
added 3 characters in body
Feb
13
revised scripting- Ignoring a variable when undefined
added 314 characters in body
Feb
13
answered scripting- Ignoring a variable when undefined
Feb
13
answered Unpack file compressed in .txz and .tar with one command