Tag Info

New answers tagged

1

I have seen both vucar and tok answers, they are very useful but you could use the amazing tool awk too: if you want to list of commands you use most often: history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head to find the most used command: history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -1 for ...


0

You can use a single cut command: history | cut -c 7-100 | sort | uniq -c | sort -nr


4

You can also use factor from the coreutils. However it needs to be compiled with bignum support. FYI, this is not the case with the binary that comes with some distributions, such as Debian (bug 608832). But you can download the source and recompile it after installing GMP (which is used by default if found). Another solution is to use Pari/GP (well-known ...


4

Maybe your factor is not built with GMP, so it can not handle number bigger than 2**64-1: $ factor 18446744073709551616 factor: `18446744073709551616' is too large $ factor 18446744073709551615 18446744073709551615: 3 5 17 257 641 65537 6700417 Running this command to check if factor built with GMP: $ ldd /usr/bin/factor linux-vdso.so.1 ...



Top 50 recent answers are included