Note: These code snippets were written and tested in 2008.
FYI: There are some challenging fun problems towards the end. Do check those out.
1. Convert all lower case to upper and vice versa.
tr "[a-z] [A-Z]" "[A-Z] [a-z]" < file
| mkdir -p ~/.vim/syntax | |
| wget -O ~/.vim/syntax/hive.vim https://raw.githubusercontent.com/autowitch/hive.vim/master/syntax/hive.vim | |
| echo "au BufNewFile,BufRead *.hql set filetype=hive expandtab" >> ~/.vimrc | |
| echo "au BufNewFile,BufRead *.q set filetype=hive expandtab" >> ~/.vimrc |
Note: This piece of code was written and tested in 2008.
/* =================
Dependency: This program needs a file called t9.dic, A file with lots of words to populate our t9 trie structure. All in small letter no spaces no other characters Terminated by a line with only a 0 (zero)