perl -e 'printf("%o", ord) foreach ( split //, shift )' #### perl -e 'printf("%x", ord) foreach ( split //, shift )'