Reputation
106,541
Next tag badge:
980/1000 score
233/200 answers
Badges
15 129 268
Newest
 vim
Impact
~3.7m people reached

13h
answered read command in zsh throws error
13h
revised Security implications of forgetting to quote a variable in bash/POSIX shells
added 3 characters in body
15h
revised How to tell “grep -w” what characters make up “words”?
added 591 characters in body
15h
answered Unwanted ctrl+h in file saved from man's output
16h
revised Why does exporting vim as EDITOR in zsh disable keyboard shortcuts?
added 73 characters in body
16h
revised How to tell “grep -w” what characters make up “words”?
clarify
16h
comment Search and replacing strings in a numerical data file
sed -E 's/[0-9.+-]*e[-+]?[0-9]{2}/ &/g' data.txt or sed -E 's/[0-9.+-]*e[-+]?[0-9]{2}/ &/g' < data.txt. See also sed -E 's/e[-+]?[0-9]{2}/& /g' data.txt
16h
comment Search and replacing strings in a numerical data file
Would sed -E 's/[0-9.-]*e-?[0-9]{2}/ &/g' do?
16h
comment Search and replacing strings in a numerical data file
Your expected output doesn't match your input
19h
comment echo with backspace
\b doesn't erase anything, it just writes the 0x8 character to stdout. When stdout is a terminal, that terminal understands that character as moving the cursor to the left by one column. For many terminals, that doesn't wrap, that is when the cursor is on the first column, it doesn't move back to the last column one line up. Some terminals do. Check for bw in the terminfo entry for those that do (like rxvt, Eterm...)
20h
revised Is it possible to echo into a file, but use indenting in the shell script source?
formatting.
20h
revised How to tell “grep -w” what characters make up “words”?
added 76 characters in body
20h
comment How to tell “grep -w” what characters make up “words”?
@freaking-good-question OK, so you want . to be the word-constituent, not -.
20h
revised How to tell “grep -w” what characters make up “words”?
added 159 characters in body
20h
revised How to tell “grep -w” what characters make up “words”?
added 159 characters in body
20h
answered How to tell “grep -w” what characters make up “words”?
21h
revised Is it possible to echo into a file, but use indenting in the shell script source?
added 352 characters in body
22h
revised Is it possible to echo into a file, but use indenting in the shell script source?
deleted 175 characters in body
22h
revised Is it possible to echo into a file, but use indenting in the shell script source?
deleted 175 characters in body
22h
answered Is it possible to echo into a file, but use indenting in the shell script source?