29,552 reputation
32165
bio website
location European Union
age
visits member for 9 months
seen 30 mins ago
stats profile views 902

Apr
17
reviewed Approve suggested edit on remove duplicate files
Apr
17
reviewed Reject suggested edit on fuse tag wiki excerpt
Apr
17
reviewed Leave Open How to remove multiple blank lines from a file?
Apr
17
revised How to remove multiple blank lines from a file?
add the trailing blank lines.
Apr
17
comment How to remove multiple blank lines from a file?
@l0b0, that's a completely different question altogether (the other one was a vim one, and was to replace blank lines with one blank line).
Apr
17
answered How to remove multiple blank lines from a file?
Apr
16
reviewed Approve suggested edit on xchat tag wiki excerpt
Apr
16
revised Command substitution - single quotes and spaces
added 18 characters in body
Apr
16
revised cut command, order not preserved?
improvement for cases where users have 1 or 3 names instead of 2.
Apr
16
answered cut command, order not preserved?
Apr
16
revised How to avoid parsing /etc/* files
add `zsh -o` invocation.
Apr
16
comment How to print shell variables and values to be able to copy/paste them?
Hence the use of cat (which in this case is not a UUOC) to pass that updated environment along the execution of a new command.
Apr
16
comment determine shell in script during runtime
Right. Note that posh (pdksh with most non-POSIX features removed so you would probably want to call it "sh") has no FCEDIT nor KSH_VERSION but has PS3 (maybe not for long), though it's unlikely for one to have it as a login shell. Also note that the code above wouldn't reflect whether bash or zsh are in sh emulation mode, which may be a problem if you're using $PROFILE_SHELL to decide whether or not to enable this or that feature. See also Sven Mascheck's whatshell for more you may (or may not) want to check.
Apr
16
awarded  sed
Apr
15
revised determine shell in script during runtime
added 382 characters in body
Apr
15
comment determine shell in script during runtime
Note that only very recent versions of ksh93 have $KSH_VERSION. That variable comes from pdksh and never made it to AT&T ksh88.
Apr
15
answered How to print shell variables and values to be able to copy/paste them?
Apr
15
comment How to print shell variables and values to be able to copy/paste them?
If your env does not support --null but you're on Linux, you can use cat /proc/self/environ instead.
Apr
15
answered A standard tool to convert a byte-count into human KiB MiB etc; like du, ls1
Apr
15
answered How do I check if I have packet socket support enabled in my distro's kernel?