Here’s a BASH one liner that I just discovered that will allow you to disassemble shellcode on the command line:

echo -n $'\x41\x41\x41\x41' | ndisasm -u -

00000000  41                inc ecx
00000001  41                inc ecx
00000002  41                inc ecx
00000003  41                inc ecx

Enjoy!