Reputation
4,433
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
7 17
Newest
 Yearling
Impact
~175k people reached

Feb
5
comment Split single string into character array using ONLY bash
[[ $string =~ ${string//?/(.)} ]] will set BASH_REMATCH[] as required, see my answer to the question Peter Mortensen links to for an explanation.
Jan
28
awarded  Yearling
Dec
14
comment bind failure, address in use: Unable to use a TCP port for both source and destination?
ip_local_port_range is a large hammer to be carefully swung on a busy server. The contemporary (post linux-2.6.35 or so) way with ip_local_reserved_ports allows enumerating the troublesome ports.
Dec
10
comment rotate element of array in shell script
In bash-4.2, more generally (and less legibly): Array=("${Array[-1]}" "${Array[@]:0:${#Array[@]}-1}")
Dec
8
comment Bash script parsing argument with quotes
exactly, quotes don't nest...
Dec
8
comment I am trying to fetch the logs for last five minutes through a script
This question covers a similar problem: unix.stackexchange.com/questions/96276/…
Dec
3
comment How do I explicitly and safely force the use of a built-in command in bash
Thanks! updated with your tips
Dec
3
revised How do I explicitly and safely force the use of a built-in command in bash
added 419 characters in body
Nov
29
revised Check variable is an array in Bourne like shell?
typeset syn. declare
Nov
28
answered Check variable is an array in Bourne like shell?
Nov
27
comment Shell valid function name characters
One may play games in bash too, starting with function /bin/sh { echo "$0: $FUNCNAME: Permission denied"; return 126; }, and potentially useful things too with functions named --, //, @ or % etc.
Nov
12
revised Undo tab expansion?
fix paste error
Nov
11
answered Undo tab expansion?
Oct
25
comment What does dd stand for?
On the topic of the cc/dd name: Spurious. dd was always named after JCL dd cards. -- Dennis Ritchie (alt.folklore.computers, 2004)
Oct
16
answered How to pipe output of find as input for diff?
Oct
15
answered Print condition result directly in bash without using if
Oct
15
revised check if date argument is in yyyy-mm-dd format
added 906 characters in body
Oct
15
answered check if date argument is in yyyy-mm-dd format
Oct
1
revised Why does a process of a binary with only execute permission remain hidden in “ps” when using hidepid=2, if the user is not root?
correct variable name
Oct
1
answered Why does a process of a binary with only execute permission remain hidden in “ps” when using hidepid=2, if the user is not root?