X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=.bashrc;h=960a7e3a3c2c178dc40094e147ad454f79d5cd75;hb=6aaba7040b0d691e20e268e4f5e3d57675f7de4e;hp=7ebf6ab9e61c6e4bb68c0ecbbe2eb6c8dfadf4bf;hpb=45d936a95a5432defad03af3801abe2465b25c6b;p=nethome.git diff --git a/.bashrc b/.bashrc index 7ebf6ab..960a7e3 100644 --- a/.bashrc +++ b/.bashrc @@ -81,6 +81,12 @@ function wclines { awk '{x[$0]++}END{for (i in x) print x[i]"\t"i}'; }; export - function ulimitme { ulimit -m 100000 -d 150000 -v 200000; }; export -f ulimitme function grep { ( ulimitme; `which grep` "$@"; ); }; export -f grep function rsync { `which rsync` -v -e ssh --progress --stats --partial "$@"; }; export -f rsync +function tohex { od -An -txC /tmp/out|tr -d '\n '|tr 'a-f' 'A-F';echo; }; export -f tohex +function edall { + find -type f|while read -r i;do + (awk