TextMate “tip of the day” about unix commands

16th Lug 2012Senza categoria, , ,

f you want the hex value of a character, you can write “echo ” | xxd” on an empty line and press ⌃R. This will execute the line as a unix command, which gives a hex dump of.

$ echo A | xxd
0000000: 410a A.

Other useful unix commands in this context are date (insert current date and time) and cal (insert a calender of current month) to name only a few.

$ cal

July 2012
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31