Peter.O

Australia

Age: 64

No, I don't know what orthogonal means.

27m
awarded Famous Question
Apr
13
comment Get display resolution from the command line for Linux Desktop
xdpyinfo | awk -F'[ x]+' '/dimensions:/{print $3, $4}'
Apr
12
awarded Civic Duty
Apr
11
awarded Yearling
Apr
8
comment Bash regular expression comparison fail for hex byte \x01
@gogoud Thanks for the comparison of two versions of bash. It is sounding like a bug - time for a bash update, and time to start using $'\x02' instead of my old favourite temp char $'\x01'
Apr
8
revised Bash regular expression comparison fail for hex byte \x01
added 324 characters in body
Apr
8
asked Bash regular expression comparison fail for hex byte \x01
Apr
8
revised Printing arrays in bash
added 8 characters in body
Apr
8
answered Printing arrays in bash
Apr
8
comment Script tries to create files even though it shouldn't have to?
The -d test before mkdir -p is rather useless. If it is useful to know whether or not a directory was created, just test mkdir exit status: 0 means a directory was created. That said. +1 for mkdir -p... to nullify the notification when exit status is non-zero, mkdir -p dir/dir 2>/dev/null
Apr
7
comment Bash Format HEX string
good - and with no trailing space ...also: eval echo \${FOO:{0..4}*8:8}
Apr
1
awarded Notable Question
Apr
1
revised upper- to lower-case using sed
removed asterisks intended by OP to display a section of code in bold.
Mar
30
awarded Custodian
Mar
30
revised keep out line break
added 73 characters in body
Mar
30
reviewed RejectAndEdit suggested edit on keep out line break
Mar
30
answered keep out line break
Mar
25
awarded Favorite Question
Mar
24
comment Remove Same Column Values
Good! The cut version is approximately 3 times faster than split version, and even that one is significantly faster than what I came up with (+1). BTW, you seem to have an extra print s, c; in the cut version
Mar
23
comment Remove Same Column Values
The add and divide method can easily give false positives. eg. 3 lines of a file may have a column with 8+ 9+10=27, which gives the same result as 3 lines containing 9+9+9=27..
1 2 3 4 5