96,224 reputation
12114239
bio website
location European Union
age
visits member for 2 years, 3 months
seen 9 hours ago

Aug
4
comment GNU/Linux: overlay block device / stackable block device
@Ivan, all those questions are easily answered by the link you pointed to
Aug
4
revised sed ranges aren't always able to match only one line
added 79 characters in body
Aug
4
comment sed ranges aren't always able to match only one line
@dave_thompson_085, quoting is not needed in variable assignments (PATTERN=$1). The -v method has issues with backslashes (common in regexps) which using ENVIRON["variable"] doesn't have. Good point about the need to escape / in the sed variants.
Aug
4
revised sed ranges aren't always able to match only one line
added 220 characters in body
Aug
4
answered sed ranges aren't always able to match only one line
Aug
3
comment How do you remember command options?
...Most commands on GNU systems. commands on Unix systems typically don't have --help. -? needs quoting with zsh, csh, tcsh or fish or if there are files whose name are - followed by a single character in the current directory. -: may be preferable there.
Aug
3
revised How can I reverse the first part of a sentence?
added 127 characters in body
Aug
3
comment How do you remember command options?
Use a shell with completion like zsh.
Aug
3
answered How can I reverse the first part of a sentence?
Aug
3
comment How can I reverse the first part of a sentence?
Then why don't we? Why promote a broken command like echo?
Aug
3
comment How can I reverse the first part of a sentence?
That assumes the input doesn't contain backslash characters and $first doesn't start with -.
Aug
3
comment Attempted assignment to non-variable?
@user79550, you can call any other application (shell or not) that can do floating point arithmetic from your dumb shell (zsh, ksh93, bc, dc, awk, perl, php... see unix.stackexchange.com/questions/40786/…)
Aug
3
comment Is it possible to use multiple here-docs in bash?
@Mikel, what I meant is that it is functionally equivalent. When not passed any argument, cat reads from its fd 0, as if passed an argument of - or /dev/fd/0 (though on Linux (and Linux only), opening /dev/fd/0 is not exactly like duplicating the file descriptor 0).
Aug
3
revised Is it possible to use multiple here-docs in bash?
added 244 characters in body
Aug
3
answered Is it possible to use multiple here-docs in bash?
Aug
3
comment Attempted assignment to non-variable?
@user79550, in zsh? After ((argv[1] /= 1000.)) ?
Aug
3
comment How to add words to an existing column
@Gnouc, sorry I missed that part of the requirement. Answer updated.
Aug
3
revised How to add words to an existing column
added 44 characters in body
Aug
3
revised How to add words to an existing column
added 75 characters in body
Aug
3
answered How to add words to an existing column