NoPaste

Befehle

von wanne
SNIPPET_DESC:
upgedatedte Befehlsliste
SNIPPET_CREATION_TIME:
12.05.2019 03:52:52
SNIPPET_PRUNE_TIME:
Unendlich

SNIPPET_TEXT:
  1. yes \# |tr -d '\n' | head -c %numcharsHX
  2.  
  3. yes \#|tr -d '\n'|dd bs=1 count=%numcharsHX
  4.  
  5. seq -s '#' 0 %numcharsHX|tr -d '[:digit:]\n'
  6.  
  7. echo "for(a=0;a<%numcharsHX;a++)print \"#\""|bc|tr -d '[:space:]\'
  8.  
  9. echo -n {1..%numcharsHX}"#"|tr -d '[:digit:][:space:]'
  10.  
  11. for tt in {1..%numcharsHX};do echo -n '#';done
  12.  
  13. perl -e 'print("#" x %numcharsHX)'
  14.  
  15. dd bs=1 count=%numcharsHX </dev/zero 2>/dev/null | tr \\0 \#
  16.  
  17. dd bs=%numcharsHX count=1 </dev/zero 2>/dev/null | tr \\0 \#
  18.  
  19. awk 'BEGIN{ while (n++ < %numcharsHX) printf "#" }'
  20.  
  21. perl -e 'print "#"x%numcharsHX'
  22.  
  23. printf %.s# {1..%numcharsHX}
  24.  
  25. # Das scheint nicht richtig zu funktionieren...
  26. # Es werden nur 12288 16384 20480 Zeichen ausgegeben
  27. #yes \#|tr -d '\n'|dd bs=%numcharsHX count=1
  28.  
  29. python3 -c'print("#"*%numcharsHX,end="")'
  30.  
  31. gcc -xc -<<<"main(){int i=%numcharsHX;while(i--)putchar('#');}";./a.out
  32.  
  33. f=$(mktemp); gcc -w -xc -o$f - <<<$'#include <stdio.h>\nint main() { for (int i = 0; i != %numcharsHX; ++i) { printf(\"#\"); } }'; $f
  34.  
  35. gcc -w -O3 -xc -w -<<<"main(){int i=%numcharsHX;while(i--)putchar('#');}";./a.out
  36.  
  37. f=$(mktemp); gcc -O3 -xc -w -o$f - <<<$'#include <stdio.h>\nint main() { for (int i = 0; i != %numcharsHX; ++i) { printf(\"#\"); } }'; $f
  38.  
  39. echo "s=\"##########\";  for i=1,9 do; s=s .. s; end;  for i=1,math.floor(%numcharsHX/5120) do; io.write(s); end; for i=1,math.fmod(%numcharsHX,5120) do; io.write(\"#\"); end " | lua
  40.  
  41. echo -e "#include <string.h>\n#include <unistd.h>\n#include <sys/ioctl.h>\n int main(){ int bufflen=10240; char s[bufflen]; memset(s,'#',bufflen); int i=%numcharsHX/bufflen; while(i--) write(1,s,bufflen); i=%numcharsHX%bufflen; while(i--) write(1,s,1); }" | gcc -xc -; ./a.out
  42.  

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN