| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 8 months |
| seen | Nov 27 '12 at 9:44 | |
| stats | profile views | 11 |
|
Oct 30 |
revised |
exec() and system() system calls added 159 characters in body |
|
Oct 30 |
answered | exec() and system() system calls |
|
Oct 22 |
comment |
How to delete empty comments with sed? +1, to delete only comments just remove \s* from pattern : perl -0777 -pe 's,/\*[*\s]*\*/, ,gs' |
|
Oct 21 |
answered | frequency of occurence |
|
Oct 19 |
comment |
frequency of occurence there is no need to sort ; here a solution with bash shopt -s extglob; N=10000; while read n;do [[ $n = *(0-9) ]]&&((a[n/N]++));done; for i in ${!a[*]};do echo $((i*N))-$(((i+1)*N-1)) $((a[i]));done |
|
Oct 12 |
revised |
Clear the screen and show a banner added 88 characters in body |
|
Oct 12 |
answered | Clear the screen and show a banner |
|
Oct 10 |
awarded | Commentator |
|
Oct 10 |
comment |
What is the difference between grep -e and grep -E option?grep -e -o 'h|l' will match literally h|l while grep -e -o 'h\|l' will match h or l and with -E it's the contrary |
|
Oct 9 |
comment |
Generate “item tag” pairs from “item,item,…|tag” lists full bash version : while IFS="|" read i t;do while read -d, j;do echo "$j$t";done <<<"$i,";done <test.txt, may be more efficient on small files but for larger files awk will be a better choice |
|
Oct 8 |
answered | Using OR patterns in shell wildcards |
|
Oct 4 |
comment |
/dev/tcp listen instead of nc listen Thanks I didn't though of this solution |
|
Oct 4 |
comment |
/dev/tcp listen instead of nc listen +1 the bash allows to create the client socket but the server socket you can use nc or can be implemented with perl or c, in fact server process will loop accepting connections and spawning processes or creating threads or it can accept only one connection by one |
|
Oct 3 |
revised |
BASH: Grouping files by name added 1054 characters in body |
|
Oct 3 |
revised |
BASH: Grouping files by name added 36 characters in body |
|
Oct 3 |
revised |
BASH: Grouping files by name added 33 characters in body |
|
Oct 3 |
answered | BASH: Grouping files by name |
|
Sep 30 |
answered | Download file linked in MySQL DB, extract text and insert into db with bash script? |
|
Sep 28 |
comment |
Is there a way to get *actual* (uninterpreted) shell arguments in a function or script? It may be a solution using history but will not work in all cases, so i don't recommend |
|
Sep 28 |
comment |
Get line number in a Bourne shell script On ubuntu sh is not bash but dash |