#!/bin/bash
STR="Its a small world afterall"
CNT=$(wc -c <<< $STR})
TMP_CNT=0
printf "Char Hex\n"
while [ ${TMP_CNT} -lt $[${CNT} -1] ]; do
printf "%-5s 0x%-2X\n" "${STR:$TMP_CNT:1}" "'${STR:$TMP_CNT:1}"
TMP_CNT=$[$TMP_CNT+1]
done
Which will output the following:
Tweets
While it’s a tough audience of audiences - it’s great to help Federal teams achieve and improve excellence!… https://t.co/6jDxgCk8TV —
8 hours 7 min ago
@Netsec_Tweet Thanks! I do a lot of deep pcap annonymization for competitions such as Dale Peterson’s S4 ICS detec… https://t.co/vbooRT8SFa —
8 hours 11 min ago
@rhee Yep - I’m sure you can find it quickly or through LinkedIn. —
8 hours 13 min ago
Packt has a $10 dollar sale for my e-book! Pick up a copy and support learning by passion & not monetary gain! https://t.co/ewo13Xm4GB —
2 weeks 2 days ago
My answer to What questions can I ask a general manager or senior programmer to impress them for an entry-level pro… https://t.co/1Ux3Z3clj4 —
4 weeks 1 day ago
My answer to How much networking information should a modern day programming student need to know? https://t.co/HK3pzVnpJX —
4 weeks 1 day ago
My answer to As a developer, how much space should I allocate for Linux? https://t.co/VfQ7heyakv —
1 month 3 hours ago
My answer to What are some good ways of maintaining consistent development, building and testing environments acros… https://t.co/lu2TaCgJa0 —
1 month 2 weeks ago
Question - do incorporations and limited liability fit the definition of socioetechnology? How about in terms of ac… https://t.co/TjTbr7dOHQ —
4 months 3 weeks ago
My amazing girlfriend Frédérique needs encouragement! She has rented a bike and signed up for an 80KM cycling fundr… https://t.co/ywcX5YhWg7 —
5 months 3 weeks ago