added personal scripts

This commit is contained in:
Fabien Benetou
2011-07-12 23:26:49 +02:00
parent 8a3d5f4c40
commit d37fcfdce1
28 changed files with 375 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
AVOID="con\|utopiah@benetou.fr"
echo consider also http://fabien.benetou.fr/Tools/ and exercises
# should also remove arguments without - e.g. nmcli con or ssh myserver
cat ~/.bash_history | sed "s/ /\n/g" | grep "^[[:alpha:]]" | sort | uniq -c | grep -v $AVOID | sort -n | tail | sed "s, \([a-zA-Z].*\), \1\t( http://unixhelp.ed.ac.uk/CGI/man-cgi?\1 ) ,"
# simpler version for just the first word, which is bad for commands like sort which never appear first
#cat ~/.bash_history | sed "s/ .*//" | sort | uniq -c | sort -n | tail
# consider similar usage for more than bash
# find ~ -name "*history*"
# ~/.vimperator/info/default/history-command (specific JSON format)
# ~/.newsbeuter/history.cmdline