886 reputation
35
bio website
location
age
visits member for 2 years, 1 month
seen 2 days ago

Sep
12
awarded  Yearling
Sep
12
awarded  Yearling
Jul
13
awarded  Good Answer
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