Reputation
119,420
Next tag badge:
98/100 score
37/20 answers
Badges
19 151 298
Newest
 Enlightened
Impact
~4.8m people reached

Jun
12
revised Understand “IFS= read -r line”?
getting my spaces right
Jun
12
revised Unix bash/ksh : Selection of first non space character from file from specific line
added 23 characters in body
Jun
12
revised Print shell arguments in reverse order
missing quotes and {} for ${10} and above
Jun
12
comment Print shell arguments in reverse order
Can be simplified to for ((i = $# - 1; i >= 0; i--))
Jun
12
answered Print shell arguments in reverse order
Jun
12
revised Unix bash/ksh : Selection of first non space character from file from specific line
added 11 characters in body
Jun
12
comment Unix bash/ksh : Selection of first non space character from file from specific line
No, ` *` matches the empty string, so it will always match at the beginning of the string.
Jun
12
comment Cloning output of a terminal
Typical job for GNU screen.
Jun
12
comment Unix bash/ksh : Selection of first non space character from file from specific line
\s is a (recent) GNUism. It won't work elsewhere. The standard equivalent is [[:space:]]. Note that you don't have to keep the history of your answer in. It's OK to change your answer without keeping trace of the older versions.
Jun
12
revised Unix bash/ksh : Selection of first non space character from file from specific line
simplified. Corrections.
Jun
12
answered Unix bash/ksh : Selection of first non space character from file from specific line
Jun
12
revised Understand “IFS= read -r line”?
added 6 characters in body
Jun
12
revised Understand “IFS= read -r line”?
added 12 characters in body
Jun
12
revised Understand “IFS= read -r line”?
added 12 characters in body
Jun
12
revised Understand “IFS= read -r line”?
actually, most shells documentations are correct. It's the POSIX spec that is misleading.
Jun
12
revised Understand “IFS= read -r line”?
added 159 characters in body
Jun
12
revised Understand “IFS= read -r line”?
added 159 characters in body
Jun
12
revised Understand “IFS= read -r line”?
added 1557 characters in body
Jun
12
revised Understand “IFS= read -r line”?
added 5 characters in body
Jun
12
answered Understand “IFS= read -r line”?