Skip to content

Instantly share code, notes, and snippets.

@max-m
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save max-m/0cb1f1584357566f09f8 to your computer and use it in GitHub Desktop.

Select an option

Save max-m/0cb1f1584357566f09f8 to your computer and use it in GitHub Desktop.
[max@/tmp]err=$(gcc -c a.cpp |& wc -c) && bytes=$(cat a.cpp |& wc -c) && echo -e "$err\n$bytes" && echo "4k $err ${bytes}/5/p" | dc
42416516042
39
217520595.0871
[max@/tmp]cat a.cpp
//*
#include"a.cpp"
#include"a.cpp"//*/
[max@/tmp]err=$(gcc -c a.cpp |& wc -c) && bytes=$(cat a.cpp | "$err\n$bytes" && echo "4k $err ${bytes}/5/p" | dc
125882581589
45
559478140.3955
[max@/tmp]cat a.cpp
#iff 0
#include"a.cpp"
#include"a.cpp"
#endif
[max@/tmp]gcc --version
gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[max@/tmp]err=$(gcc -c a.cpp |& wc -c) && bytes=$(cat a.cpp |& wc -c) && echo -e "$err\n$bytes" && echo "4k $err ${bytes}/5/p" | dc
1251706
29
8632.4551
[max@/tmp]cat a.cpp
#iff 0
#include"a.cpp"
#endif
[max@/tmp]err=$(gcc -c a.cpp |& wc -c) && bytes=$(cat a.cpp |& wc -c) && e "$err\n$bytes" && echo "4k $err ${bytes}/5/p" | dc
6260
23
54.4347
[max@/tmp]cat a.cpp
//*
#include"a.cpp"//*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment