Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Adding gnuplot and data files for disaggregation blog post
  • Loading branch information
patrickstuedi committed Mar 5, 2019
1 parent c9ab761 commit 3c0c96bc7df96158f8a27168976b0ff354cef4b9
Showing 36 changed files with 50,715 additions and 0 deletions.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,22 @@
# which column
if [ $# -ne 2 ]; then
echo "tell me file name and col number"
exit 1

# sort it
sort --key $k -n $file > $file-sort

# now we generate CDF
totalLines=$(cat $file-sort | wc -l)
echo "total line numbers: $totalLines"
rm ./xx
for i in `seq 1 100`;
lx=$(( $i * $totalLines ))
lxx=$(( $lx / 100 )) # you get the line number here
sed -n "${lxx}p" $file-sort >> ./xx
cat ./xx | awk '{print $1,"\t",NR}' > cdf-$file

0 comments on commit 3c0c96b

Please sign in to comment.