66,036 reputation
863145
bio website
location European Union
age
visits member for 1 year, 7 months
seen 8 hours ago

Dec
11
revised Sort based on the third column
added 1676 characters in body
Dec
10
revised How to get server's ssl certificate in a human readable form?
added 342 characters in body
Dec
10
awarded  Nice Answer
Dec
10
comment How to get server's ssl certificate in a human readable form?
@J.F.Sebastian, openssl x509 only displays it with -text
Dec
10
answered How to get server's ssl certificate in a human readable form?
Dec
10
answered Catch “command not found” from shell script
Dec
10
comment Catch “command not found” from shell script
Some shells like ksh, zsh and bash can trap on the special ERR non-signal. Not quoting your variables doesn't make sense here. Note all shell commands are executed by exec functions.
Dec
10
comment bit-wise complement with dd?
Pass conv=notrunc to dd to avoid truncating the output file. Any way, you don't need dd here (especially not 2 invocations per sector!), you can use shell redirection. Doing one read and one write system call per byte is not terribly efficient.
Dec
10
revised bit-wise complement with dd?
added 120 characters in body
Dec
10
answered bit-wise complement with dd?
Dec
10
comment is there a proper syntax for the expression or is this impossible
Note that to read one line of data (minus the trailing newline) into $data, provided it doesn't contain NUL characters, the correct syntax is IFS= read -r data.
Dec
10
comment is there a proper syntax for the expression or is this impossible
echo doesn't support --. Some implementations support - (one dash), not bash's.
Dec
10
comment Understanding line numbers reported when using eval
yes, line numbers when using eval are random with bash, try to interpret the script with a compatible shell, zsh in bash emulation mode and ksh93 come to mind.
Dec
10
comment Sort based on the third column
No, by default sort columns are blank separated, they are not character columns, to sort on the 3rd character column, the syntax would be: sort -k 1.3,1.3. ls -l | sort -k5,5n to sort on the size.
Dec
10
revised Sort based on the third column
added 5 characters in body
Dec
10
answered Sort based on the third column
Dec
10
answered Removing “[crap-like-this]” from strings using bash parameter expansion?
Dec
10
revised What happens to a continuing operation if we do ssh and then disconnect?
added 506 characters in body
Dec
10
revised What happens to a continuing operation if we do ssh and then disconnect?
added 155 characters in body
Dec
10
answered What happens to a continuing operation if we do ssh and then disconnect?