83,332 reputation
1092197
bio website
location European Union
age
visits member for 2 years
seen 10 mins ago

May
22
comment Highlighting text in bash when using reverse history search using Ctrl-R
@Bernhard, possibly you have an old version of zsh. highlighting was added relatively recently circa 2008 (4.3.6 or 7)
May
21
comment Difference between cat and '>' to zero out a file
@jw013, in practice, all the POSIX shells I know have true builtin anyway and like you I don't see the point of executing a hardcoded true, but think of busybox as a possible counter-example. Note that very few shells implement that section of the spec (they generally still run [ or echo for instance even if they're not found in $PATH). I find it strange that false, true are included in that list and not type.
May
21
answered Why does openssl print to stderr for a successful command?
May
21
answered Highlighting text in bash when using reverse history search using Ctrl-R
May
21
comment renaming multiple files increment order
No, as I said in a comment to one of your other answers, -k1n sorts on the part of the line that starts at the first column (so the whole line). -k1,1n sorts on the first column. Because -n converts that part to numbers, that makes little difference. So sort -n is the same as sort -k1n and same as sort -k1,1n at least for the default field separator.
May
21
revised how to select specific range of line & count the specific occurence of the first charcter w.r.t. each unique second charcter?
formatting
May
21
revised Commands run when terminal is open do not appear in history
deleted 15 characters in body
May
21
revised Commands run when terminal is open do not appear in history
added 274 characters in body
May
21
revised How to run xfce-terminal with different commands per tab and keep using the tabs after the commands have returned?
edit subject to reflect what is really been asked.
May
21
answered Commands run when terminal is open do not appear in history
May
21
comment Commands run when terminal is open do not appear in history
See this answer to a related question (that's for xfce-terminal but can be adapted to your usage).
May
21
revised renaming multiple files increment order
added 245 characters in body
May
21
comment renaming multiple files increment order
Again -k1n doesn't do what you think it does. The k1 is redundant. Why not printf '%s\n' *.ctl | sort -t. -k3,3n
May
21
revised Using a zsh function in find?
added 569 characters in body
May
21
comment renaming multiple files increment order
@sourabhbal, see update
May
21
revised renaming multiple files increment order
added 4 characters in body
May
21
revised how to grep complex hierarcy?
added 189 characters in body
May
21
answered how to grep complex hierarcy?
May
21
revised Using a zsh function in find?
added 552 characters in body
May
21
answered Using a zsh function in find?