Reputation
111,275
Next tag badge:
399/400 score
103/80 answers
Badges
17 139 279
Newest
 Enlightened
Impact
~4.0m people reached

13h
revised How can I quickly sum all numbers in a file?
added 132 characters in body
13h
answered How can I quickly sum all numbers in a file?
13h
revised Output to variable with an indirect command (eval)
added 922 characters in body
14h
answered Output to variable with an indirect command (eval)
15h
awarded  Enlightened
15h
awarded  Nice Answer
19h
awarded  Good Answer
19h
reviewed Approve Why do I need to quote variable for if, but not for echo?
19h
revised Move a range of words to the end of the string
added 86 characters in body
19h
revised Move a range of words to the end of the string
added 86 characters in body
19h
answered Move a range of words to the end of the string
19h
comment Move a range of words to the end of the string
Can there be more than one comment= and/or fruit in that string? Do you need that process for every line of a file, or just in a string stored in a shell variable? Can that string contain newline characters?
19h
revised Move a range of words to the end of the string
added 8 characters in body
19h
comment how do I trim each line in bash?
@don_crissti ...and/or has lines starting with - and followed by combinations of 1 or more e, E or n characters, and/or contains NUL characters. Also, a non-terminated line after the last newline will be skipped.
21h
revised man page search - how can I turn off the highlighting after matches found?
clarify that that answer covers the "less" pager (other pagers tend not to highligh searches by default anyway)
21h
revised man page search - how can I turn off the highlighting after matches found?
nothing to do with bash. typos
21h
comment man page search - how can I turn off the highlighting after matches found?
@user4668401, man has nothing to do with bash. bash is a command to interpret command-lines (a command-line language interpreter), man is a command to read manual pages.
22h
answered how do I trim each line in bash?
23h
comment Substrings in shell script
(with mksh, you need the -U option for ${var:offset:length} to work with characters as opposed to bytes in UTF-8 locales).
23h
comment Substrings in shell script
That syntax is also available in zsh's ksh and mksh since version 30.1 (2007).