This is an old revision of the document!


siroky_vtip.jpg

$ cat pismenka1.txt | iconv -f utf8 -t ascii//TRANSLIT//IGNO                                                                                       RE > ascii.txt
  • transform Czech and other diacritics to pure ascii
$ echo "whatever" | rev
  • result: revetahw
curl -u "email":"passwd" --silent "https://mail.google.com/mail/feed/atom" | perl -ne 'print "\t" if /<name>/; print "$2\n" if /<(title|name)>(.*)<\/\1>/;' | awk -v FS="(<fullcount>|</fullcount>)" '{print $2}'
  • get me emails from gmail
  • parse only number of new emails there
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2" " $3}END{print ""}' $file; done | sort -k 2 -n -r | less
  • parsuje used swap space

Tools

  • project/linuxfun.1462795608.txt.gz
  • Last modified: 2016/05/09 14:06
  • (external edit)