Reputation
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
7 49 103
Impact
~967k people reached

8h
revised Check number of words in a file that contain a specific letter
added narrative
18h
answered Check number of words in a file that contain a specific letter
2d
awarded  Nice Question
2d
revised How to number a string in each line of a file
blank line between narrative and code
Jul
28
comment Regex search for word roots with common prefixes
The combination of grep and sed is rather unnecessary, as sed can do both steps in one: sed -nr 's/^(pro|con)(.*)/\2/p' | sort | uniq -d
Jul
28
awarded  Enlightened
Jul
28
awarded  Nice Answer
Jul
28
revised Grep the text which matches with a pattern
handle trailing newline properly - ie don't print `\n` when no matches found
Jul
28
revised Grep the text which matches with a pattern
to add newline
Jul
28
revised Grep the text which matches with a pattern
added 13 characters in body
Jul
28
revised Grep the text which matches with a pattern
added 82 characters in body
Jul
28
answered Grep the text which matches with a pattern
Jul
28
comment How to add argument options to executables in C
Your question is vague and broad. Are you asking - "What are the convention guidlines?" If so, you could start here The Open Group Base Specifications Issue 7 - Utility Conventions
Jul
27
comment Bash error: missing [: missing `]'
@PeterRoberts: The "discard" syndrome (as you put it) is (as I see it) the result of a frustration coming from many people coming here for the first time and asking poorly prepared, inadequate questions. Think of it as a rite of passage - If you can take the (initial) heat, you will soon learn the flow and way of doing things here - It is a very practical, effective, and helpful site - To inform yourself of the way to present questions and answers and comments, read the Help Center page
Jul
27
answered Bash error: missing [: missing `]'
Jul
27
comment Bash error: missing [: missing `]'
Are the files usage1 and /home/peters/usage1 the same file? I assumer they are (but I'm not sure.. it is a bit odd either way) -- It seems that you can check it in one line: [[ -n $(df -h / | awk 'int($5)>6{print $5}') ]] && echo "Warning file system greater than 6%"
Jul
27
revised How do you use variables with values containing spaces in a Z-shell (zsh) script command?
another way to present the array
Jul
27
answered How do you use variables with values containing spaces in a Z-shell (zsh) script command?
Jul
27
comment XXD output without line breaks
It depends on what you need it for, but one handy option of xxd is that it ignores whitespace for the reverse -r of its postcript/plain -p dump (or any plain hexdump for that matter). eg. The following line wraps with \n, but the reversed output is exactly what was input: echo {1..14} | xxd -p | xxd -p -r produces output: 1 2 3 4 5 6 7 8 9 10 11 12 13 14\n – the \n is from the echo
Jul
26
comment Bash - Sequence of numbers in the same line
seq 10 | xargs works fine, but because of command line limits,seq 100000 | xargs outputs 5 \n delimited lines (on my system)